This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # path: config/application.rb | |
| # frozen_string_literal: true | |
| require_relative "boot" | |
| require "rails/all" | |
| # Load RUM trace headers middleware for Splunk Observability Cloud. | |
| require_relative "../lib/middleware/rum_trace_headers" | |
| # Load functions for log correlation with OpenTelemetry traces. | |
| require_relative "../../lib/otel/logging" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| machine: | |
| pre: | |
| # install docker 1.10.0 | |
| - curl -sSL https://git.io/vrcFi | bash -e | |
| # install yarn | |
| - curl -sSL https://git.io/v1XIm | bash -e | |
| services: | |
| - docker | |
| dependencies: | |
| override: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -xe | |
| YARN_VERSION=${YARN_VERSION:-0.17.10} | |
| if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then | |
| echo "Download and install Yarn." | |
| curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | |
| else | |
| echo "The correct version of Yarn is already installed." | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| rand() { | |
| printf $(( $1 * RANDOM / 32767 )) | |
| } | |
| rand_element () { | |
| local -a th=("$@") | |
| unset th[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log 'for in', "all: #{$scope.all}" | |
| for user in $scope.participants | |
| console.log user | |
| user.checked_out_events[$scope.id].selected = $scope.all | |
| console.log 'forEach', "all: #{$scope.all}" | |
| _.forEach $scope.participants, (user) -> | |
| console.log user | |
| user.checked_out_events[$scope.id].selected = $scope.all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "dictionary": "Packages/Language - English/en_US.dic", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "Monaco", | |
| "font_size": 12.0, | |
| "hot_exit": false, | |
| "ignored_packages": | |
| [ | |
| "Vintage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mkdir -p /opt/boxen | |
| sudo chown ${USER}:staff /opt/boxen | |
| git clone https://github.com/chytreg/our-boxen.git /opt/boxen/repo | |
| cd /opt/boxen/repo | |
| script/boxen --debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "dictionary": "Packages/Language - English/en_US.dic", | |
| "font_face": "Monaco", | |
| "font_size": 12.0, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "theme": "Nexus.sublime-theme", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ApplicationController < ActionController::Base | |
| # Turn on request forgery protection | |
| protect_from_forgery | |
| after_filter :set_csrf_cookie_for_ng | |
| def set_csrf_cookie_for_ng | |
| cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? | |
| end | |
| protected |
NewerOlder