Scenario: you get into an elevator with some CEO. Why should they hire you? What do you do and what value can you bring to their org?
This file contains 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 ruby | |
# Why not bash? | |
# bash is annoying for opts handling | |
# AND especially annoying if those opts need to be in both --key value AND --key=value format | |
# AND not DRY. | |
# and Ruby is pretty close to bash in syntax. Or it's close to Perl, which is close to Bash | |
# and Python feels like a bunch of boilerplate here | |
require 'optparse' |
This file contains 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
version: 1 | |
tasks: | |
from-net: | |
command: python3 | |
script: | | |
print("hi from the network") |
This file contains 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
// ==UserScript== | |
// @name Only Github News | |
// @version 1 | |
// @grant none | |
// @include /^https?://github\.com\/\?news=only/ | |
// ==/UserScript== | |
document.querySelector(".team-left-column").remove() |
This file contains 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
// I should probably write a blog post about this, but whatever | |
import { Spanner, Instance } from '@google-cloud/spanner' | |
import type { Database } from '@google-cloud/spanner' | |
/** | |
Authentication is provided by the local machine user running | |
`gcloud auth application-default login` | |
*/ |
This file contains 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
// ==UserScript== | |
// @name Make Github PR big | |
// @version 1 | |
// @grant none | |
// @match https://github.com/*/*/pull/* | |
// @run-at document-idle | |
// ==/UserScript== | |
document.querySelector(".Layout-sidebar").remove() |
This file contains 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
/*{ | |
"type": "action", | |
"targets": ["omnioutliner"], | |
"author": "Marc A. Kastner, with minor edits by Ryan Wilcox", | |
"description": "Create a markdown compatible format from the current document and export it to Drafts 5.", | |
"label": "Drafts - New Draft with Markdown format", | |
"paletteLabel": "Drafts Doc" | |
}*/ | |
var _ = function() { |
This file contains 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 node | |
/* | |
Node script are kind of cool, but they are hard to low-tech write a Node script for someone and give it to them. | |
Sure you can publish a package to NPM, set the binary flag, go through some house keeping... but sometimes that's just | |
not worth the effort. | |
So: can you distribute a Node script that will install it's own modules from a single file? |
This file contains 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
const process = require("process") | |
const superagent = require('superagent') | |
const Ajv = require("ajv") | |
// This example is inspired by the idea of https://riposte.in/ | |
// although that package has a way better DSL by not being written in Javascript | |
// Normally a playground script like this would serve two purposes: | |
// 1. All developers to pass around scripts of things that Should Work |
This file contains 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 faker import Faker | |
#fake = Faker('en_US') | |
#print fake.words() # sentence() #bs() # catch_phrase() | |
import requests | |
import random | |
def main(): |
NewerOlder