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
| S-EP | episode title | score | |
|---|---|---|---|
| 1-01 | The Man Trap | -33 | |
| 1-02 | Charlie X | 26 | |
| 1-03 | Where No Man Has Gone Before | 34 | |
| 1-04 | The Naked Time | 64 | |
| 1-05 | The Enemy Within | 30 | |
| 1-06 | Mudd's Women | -31 | |
| 1-07 | What Are Little Girls Made Of? | -1 | |
| 1-08 | Miri | -30 | |
| 1-09 | Dagger of the Mind | 8 |
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
| require 'action_view' | |
| require 'will_paginate/view_helpers/action_view' | |
| require 'will_paginate/collection' | |
| current_page = 10 | |
| total_pages = 31 | |
| class NoLastPages < WillPaginate::ActionView::LinkRenderer | |
| # Make sure no page links are rendered after the `:gap` item that follows | |
| # the current page number. |
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 | |
| # Pushes the current branch to origin and opens a tiny tmux split to track | |
| # the CI status. Upon completion, speaks the status aloud using `say`. | |
| set -e | |
| if [ "$1" != "--wait" ]; then | |
| git push -u origin HEAD | |
| tmux split-window -dv -l 2 "'$0' --wait" | |
| else | |
| ref="$(git rev-parse -q HEAD)" |
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 | |
| cd "${0%/*}" | |
| export GEM_HOME="${PWD}/.gem" | |
| export GEM_PATH="$GEM_HOME" | |
| if [ ! -x "${GEM_HOME}/bin/grailbird_updater" ]; then | |
| /usr/bin/gem install grailbird_updater --no-rdoc --no-ri | |
| 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
| #!/bin/bash | |
| set -e | |
| droplet=netflix | |
| interface=Wi-Fi | |
| us_regions=( nyc1 nyc2 nyc3 ) | |
| random_region() { | |
| echo ${us_regions[RANDOM % ${#us_regions[@]}]} | |
| } |
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 | |
| git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD | { | |
| seen=":" | |
| git_dir="$(git rev-parse --git-dir)" | |
| while read line; do | |
| date="${line%%|*}" | |
| branch="${line##* }" | |
| if ! [[ $seen == *:"${branch}":* ]]; then |
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(self){ | |
| if (self.Promise) return | |
| // Implements https://promisesaplus.com | |
| function isFunction(fn) { | |
| return typeof fn == 'function' | |
| } | |
| // Values that should never be checked for presence of a `then` method | |
| function simpleValue(fn) { |
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 | |
| # Run once to patch `rcd` daemon after creating a backup. | |
| # Run again to restore the backup and revert back to original functionality. | |
| set -eu | |
| if [ "$USER" != "root" ]; then | |
| exec sudo "$0" "$@" | |
| fi | |
| rcd="/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd" |
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(){ | |
| var _ = window.setTimeout | |
| window.setTimeout = function(delay, fn) { | |
| return (typeof delay == "number") ? _(fn, delay) : _(delay, fn) | |
| } | |
| })() |
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
| $ curl -s -H 'Accept: application/vnd.github.drax-preview+json' \ | |
| https://api.github.com/orgs/github/repos?per_page=100 | \ | |
| grep -A1 '"license"' | grep '"key"' | cut -d'"' -f4 | \ | |
| sort | uniq -c | |
| 5 apache-2.0 | |
| 1 bsd-3-clause | |
| 2 cc0-1.0 | |
| 1 gpl-2.0 | |
| 56 mit |