Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtsX9AMEbLJWzJ/XYj/SqDRz7KBxlzd6J/Rhx56BDGmSGUeiU/DiA6uFsquRxmnTAERsq3SnxhnZ4/fLyd0YFCnqaky9465E353zklbXvLBRBv90zgedbIOpJBR4Y2sg0njgjlTTXY+8fOQYM/JP4FOexp6kycqgkOSziDBveEmS1tTdMxTB0IUwxIr80XrG9PBTodv8L1Y5DyI4qaymyVDKNf5PvcRr1mc5fatg1OoL0q8slzvEP3FUYEQTjDzMqkL4tE8SBRA0SlbIooTRTse94Do+EskmC+FOCoQpDsCu9m8eIxPNiNyogSNv9s5UaPf3M02c33y/OI/fMo5eSxQfg+/Rvss0FRKuIWIuTD+deCkw4A7Fb4jLR1HTENZnXe4GCS6BxrI32O8Fdyk7eC2+5XKUJ5OB6Xk8N0BMlqmzxh5NSFa2ga8AiTDeVgRYJbuXChefresZvxSkQFngk1WPv3Dk4n1NtSnFoDHnRimoucMe4K5MB2oHwwDEvwQA9+LmvMI9bNgWadVwSFtfer+9U6GCcJNzevLgcF8z2Won8w50EL/jau0da0FpqCuaPliTAanhueEedVbPGy0Q71K7568yxmM5LYJ3+DTcMuiEvTGhY1Qt4WfgqdOwB3h7oUU5QDF0mHKWcOhrSrbqf57xNGka+infRvu2BPW5MbKQ== michael@Michaels-MacBook-Pro.local
// To run, paste the below into your Chrome console on
// https://www.nytimes.com/games/wordle/index.html from an incognito window
//
// Tile `evaluation` options are:
// - absent: grey, not in word
// - present: yellow, in word but wrong position
// - correct: green
const answers = [
[
const answers = [
['H', 'A', 'P', 'P', 'Y'],
['B', 'I', 'R', 'T', 'H'],
[' ', 'D', 'A', 'Y', ' '],
['B', 'R', 'A', 'I', 'N'],
['B', 'R', 'I', 'A', 'N'],
['!', '!', '!', '!', '!']
];
const rows = document.querySelectorAll('game-app')[0].shadowRoot.querySelectorAll('game-row');
const answers = [
['H', 'A', 'P', 'P', 'Y'],
['B', 'I', 'R', 'T', 'H'],
[' ', 'D', 'A', 'Y', ' '],
['B', 'R', 'A', 'I', 'N'],
['B', 'R', 'I', 'A', 'N'],
['!', '!', '!', '!', '!']
];
const rows = document.querySelectorAll('game-app')[0].shadowRoot.querySelectorAll('game-row');
> tulip:navi go 🌱 master 🍂 9e7fbf5
util = require 'util'
lifx = require './lifx'
lx = lifx.init()
log = (text) ->
process.stdout.write("#{text}\n")
typeIsArray = Array.isArray || (value) ->
{}.toString.call(value) is '[object Array]'
#import "MSAppDelegate.h"
@implementation MSAppDelegate
@synthesize lifxContext, lastKeyPress;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
self.lifxContext = [[LFXClient sharedClient] localNetworkContext];
self.lastKeyPress = CACurrentMediaTime();
20> func mult(a:Int)(b:Int) -> Int {
21. return a * b
22. }
23> mult(4)
$R10: (b: Int) -> Int =
24> mult(4)(b: 5)
$R11: Int = 20
[2] pry(main)> Stripe::VERSION
=> "1.11.0"
[3] pry(main)> Stripe.api_key = '[redacted]'
=> "[redacted]"
[4] pry(main)> Stripe.api_version = '2014-01-31'
=> "2014-01-31"
[7] pry(main)> begin
[7] pry(main)* Stripe::Customer.create(email: 'baz@example.com', card: { number: '4000000000000002', exp_month: 12, exp_year: 2014 }, metadata: { profile_id: '100' })
[7] pry(main)* rescue Stripe::CardError => exception
[7] pry(main)* puts "Encountered a card error..."
.ticket-reply-button-wrap > div {
float: right !important;
}
#nav {
display: none !important;
}
.console-header {