ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| " Language Specific scratch buffers with date | |
| " --------------------------------------------------------------------------------- | |
| function! s:DScratch(scratch_ft) | |
| let scratch_dir = '~/Dropbox/scratch/buffers' | |
| let scratch_date = strftime('%Y%m%d') | |
| let scratch_file = 'scratch-'. scratch_date . '.' . a:scratch_ft | |
| let scratch_buf = bufnr(scratch_file) | |
| if scratch_buf == -1 | |
| exe 'split ' . scratch_dir . '/' . scratch_file |
| # This custom relay connection class exists because the built-in connection | |
| # class is broken when max_page_size is used. | |
| # | |
| # See: https://github.com/rmosolgo/graphql-ruby/issues/1109 | |
| class CustomArRelationRelayConnection < GraphQL::Relay::BaseConnection | |
| def cursor_from_node(item) | |
| cursor_col = item.class.implicit_order_column | |
| encode(item.send(cursor_col).to_s) | |
| end |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| CREATE OR REPLACE FUNCTION jsonb_merge(left JSONB, right JSONB) RETURNS JSONB AS $$ | |
| var mergeJSON = function (target, add) { | |
| function isObject(obj) { | |
| if (typeof obj == "object") { | |
| for (var key in obj) { | |
| if (obj.hasOwnProperty(key)) { | |
| return true; // search for first object prop | |
| } | |
| } |
| Code | Title | Duration | Link |
|---|---|---|---|
| Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
| Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
| Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
| Keynote | [Tuesday Night Live with Jame |
| defmodule BasicBench do | |
| use Benchfella | |
| @num :random.uniform(999_999_999_999) | |
| bench "interpolation" do | |
| @num | |
| |> NumToWordsString.say | |
| end |
| // create an IAM Lambda role with access to dynamodb | |
| // Launch Lambda in the same region as your dynamodb region | |
| // (here: us-east-1) | |
| // dynamodb table with hash key = user and range key = datetime | |
| console.log('Loading event'); | |
| var AWS = require('aws-sdk'); | |
| var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'}); | |
| exports.handler = function(event, context) { |
| require 'formula' | |
| # Reference: https://github.com/b4winckler/macvim/wiki/building | |
| # my install command: brew install macvim_dphase --env-std --override-system-vim --custom-icons --HEAD | |
| class MacvimDphase < Formula | |
| head 'https://github.com/dphase/macvim.git', :branch => 'master' | |
| option "custom-icons", "Try to generate custom document icons" | |
| option "override-system-vim", "Override system vim" |
As configured in my dotfiles.
start new:
tmux
start new with session name: