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
| import _ from 'lodash'; | |
| const mockMap = new Map(); | |
| export function mock(name, obj) { | |
| if (process.env.BRIGHT_ENV === 'prod') { | |
| return obj; | |
| } | |
| if (!_.isObject(obj)) { |
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
| function GetDir() | |
| return split(getcwd(), "/")[-1] | |
| endfunction | |
| let g:ctrlp_cache_dir = $HOME.'/.cache/ctrlp-'.GetDir() |
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
| <html> | |
| <head> | |
| <title>Your Website Title</title> | |
| <!-- You can use open graph tags to customize link previews. | |
| Learn more: https://developers.facebook.com/docs/sharing/webmasters --> | |
| <meta property="og:url" content="http://www.your-domain.com/your-page.html" /> | |
| <meta property="og:type" content="website" /> | |
| <meta property="og:title" content="Your Website Title" /> | |
| <meta property="og:description" content="Your description" /> | |
| <meta property="og:image" content="http://www.your-domain.com/path/image.jpg" /> |
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
| import React, { Component, PropTypes } from 'react'; | |
| import * as Colors from 'material-ui/lib/styles/colors'; | |
| import CheckCircle from 'material-ui/lib/svg-icons/action/check-circle'; | |
| import Info from 'material-ui/lib/svg-icons/action/info'; | |
| import JourneyService from '../../../services/JourneyService'; | |
| const aligner = { | |
| display: 'flex', | |
| alignItems: 'flex-start', |
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: required | |
| language: node_js | |
| env: | |
| - BRIGHT_ENV=travis | |
| before_install: | |
| - rm -f node_modules |
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: false | |
| language: node_js | |
| env: | |
| - BRIGHT_ENV=travis | |
| before_install: | |
| - rm -f node_modules |
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 -e | |
| if [ ! "$CI" == true ]; then | |
| echo "Not running in CI" | |
| exit 1 | |
| fi | |
| docker build --tag brightsolar/web-nginx:codeship_build_"$CI_BUILD_NUMBER" nginx/ && docker push brightsolar/web-nginx | |
| docker build --tag brightsolar/web:codeship_build_"$CI_BUILD_NUMBER" --file Dockerfile.prod . && docker push brightsolar/web |
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
| #include <iostream> | |
| #include <cstring> | |
| #include <sstream> | |
| #include <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <cctype> | |
| #include <queue> | |
| #include <map> | |
| #include <fstream> |
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
| #include <iostream> | |
| #include <cstring> | |
| #include <sstream> | |
| #include <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <cctype> | |
| #include <queue> | |
| #include <map> | |
| #include <fstream> |
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
| package boom_test | |
| import ( | |
| "testing" | |
| ) | |
| func BenchmarkHello(b *testing.B) { | |
| for i := 0; i < b.N; i++ { | |
| fibReadable(100000) | |
| } |