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
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Data.Text (Text) | |
| import System.Environment | |
| import System.Exit | |
| import qualified Data.Text as T | |
| import qualified Data.Text.IO as T | |
| import Data.Attoparsec.Text |
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
| {"opponent_team"=> | |
| {"team"=> | |
| {"slug"=> | |
| "a-s-d-cervarese-prima-squadra-seconda-categoria-2016-2017-41469"}, | |
| "score"=>0}, | |
| "slug"=>"candiolo-seconda-categoria-girone-g-36144", | |
| "kickoff_at"=>"2017-03-16T15:30:11Z", | |
| "user_is_home"=>true, | |
| "lineup"=> | |
| {"substitutes"=> |
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
| ActiveSupport::TimeZone["Pacific Time (US & Canada)"].parse("February 17th at 8am").in_time_zone("CET") | |
| # => Fri, 17 Feb 2017 17:00:00 CET +01:00 |
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
| lucas-ludvigsen | |
| matias-madsen | |
| nicolai-slot | |
| nicolai-andersen-63c82841-279b-4de0-825e-723954c9d59a | |
| mads-friis-8c3ee9d8-6a3d-4111-b23b-e8dee9ea5e00 | |
| lukas-nisgaard-rasmussen | |
| jesper-lindblom | |
| jonas-idso | |
| marcus-nielsen-a57e8018-798c-4ce8-87ab-1082da2e47aa | |
| ayub-abukar |
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
| norway = Country.find_by_code "NO" | |
| denmark = Country.find_by_code "DK" | |
| User.distinct.where(phantom: false).joins(teams: :club).where("users.country_id != clubs.country_id").where(country: denmark).where(clubs: { country_id: norway.id }) |
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
| Plug 'mattn/gist-vim' | |
| Plug 'mattn/webapi-vim' | |
| Plug 'mhartington/oceanic-next' | |
| Plug 'christoomey/vim-conflicted' | |
| Plug 'sjl/vitality.vim' |
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/sh | |
| set -e | |
| user=cardistryio | |
| if [[ whoami -eq "root" ]]; then | |
| echo "log-in as root" | |
| exit 1 | |
| else | |
| adduser $user |
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
| tonsser-core-data feature/implement-concurrency@6c46b7e 💩 ❯ node api/workers/ScrapingWorker.js --optimize-for-size | |
| Starting worker | |
| /Users/davidpdrsn/source/work/tonsser/tonsser-core-data/node_modules/winston-mongodb/lib/winston-mongodb.js:49 | |
| throw new Error('You should provide db to log to.'); | |
| ^ | |
| Error: You should provide db to log to. | |
| at new exports.MongoDB (/Users/davidpdrsn/source/work/tonsser/tonsser-core-data/node_modules/winston-mongodb/lib/winston-mongodb.js:49:11) | |
| at Object.<anonymous> (/Users/davidpdrsn/source/work/tonsser/tonsser-core-data/config/log.js:38:7) | |
| at Module._compile (module.js:413:34) |
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 | |
| set -e | |
| function git_branch_name { | |
| val=`git branch 2>/dev/null | grep '^*' | colrm 1 2` | |
| echo "$val" | |
| } | |
| branch=`git_branch_name` | |
| target=$1 |
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
| FROM ruby:2.3.0 | |
| RUN apt-get update -qq \ | |
| && apt-get install -y --no-install-recommends \ | |
| dbus-1-dbg \ | |
| libpq-dev \ | |
| libqt5webkit5-dev \ | |
| libqtwebkit-dev \ | |
| nodejs \ | |
| qt5-default \ | |
| xvfb |