I hereby claim:
- I am kevingriffin on github.
- I am kevingriffin (https://keybase.io/kevingriffin) on keybase.
- I have a public key ASAT1rj9XlLnWTCd6yNcHNvESds2GxWF2n_vHAHZJhdjbAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
@font-face { | |
font-family: "SF Mono Nerd Font"; | |
font-style: normal; | |
font-weight: 200; | |
src: url(data:font/ttf;charset-utf-8;base64,AAEAAAANAIAAAwBQRkZUTXsmXkoACMTsAAAAHEdERUYAJwoAAAjEzAAAAB5PUy8ylhnsxgAAAVgAAABgY21hcBy2s+UAACjIAAAHNGdhc3D//wADAAjExAAAAAhnbHlmTxZyvAAAV+gAB+6YaGVhZBgZL5YAAADcAAAANmhoZWEMkw4vAAABFAAAACRobXR4ys8LvwAAAbgAACcObG9jYSHQirwAAC/8AAAn7G1heHAKmAkGAAABOAAAACBuYW1lfOfFjAAIRoAAAA6jcG9zdAecfzsACFUkAABvnQABAAAAAQAAdT3/UF8PPPUACwgAAAAAANoD8rkAAAAA2gPyufjv/LgMAwhuAAAACAACAAEAAAAAAAEAAAee/hIAAAp5+O/7swwDAGQAAAAAAAAAAAAAAAAAAAmNAAEAAAn6CQMAXAAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAwW2AZAAAgAEBTMEzAAAAJkFMwTMAAACzABkAosAAAILAAkAAAIAAAAgAAKPAAAYAgAAAAAAAAAAVUtXTgAAACD7Agee/hIAAAeeAe5gAAGfAAAAAAQ9BaMAAAAgAAEE8gAABPIAAAAAAAAE8gAABPIB8ATyAV4E8gBEBPIAiQTyAAAE8gBGBPICIATyAZ8E8gF9BPIAXgTyAGQE8gGSBPIAaATyAcQE8gDGBPIAkwTyAKkE8gCtBPIAiQTyAJAE8gCTBPIAkwTyAJ8E8gCBBPIAjATyAcQE8gGSBPIAywTyAGgE8gDLBPIA1QTyAHIE8gBKBPIAvATyAIIE8gCgBPIA5gTyAP4E8gB8BPIAmQTyAP0E8gCnBPIA2ATyAQcE8gBjBPIAmQTyAGgE8gDGBPIAaATyALYE8gCLBPIAbQT |
## Results: | |
## CollectionProxies (1000000): 30.980000 2.890000 33.870000 ( 33.993120) | |
## Associations (1000000): 0.120000 0.000000 0.120000 ( 0.120288) | |
require 'active_record' | |
require 'sqlite3' | |
require 'benchmark' | |
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" |
#!/bin/bash -e | |
PREFIX=config/locales | |
BRANCH=test-master | |
WORKING_DIRECTORY=/data/application | |
PA_API_KEY="" | |
PA_PROJECT_ID="" | |
cd ${WORKING_DIRECTORY} | |
git reset --hard |
<dict> | |
<key>name</key> | |
<string>diff.deleted</string> | |
<key>scope</key> | |
<string>markup.deleted.git_gutter</string> | |
<key>settings</key> | |
<dict> | |
<key>foreground</key> | |
<string>#F80018</string> | |
</dict> |
<script> | |
Namespace('OurAssets.Sounds', { | |
<%= ['correct1', 'correct2', 'correct3', 'correct4', 'correct5'].map { |s| "#{s}: '#{compute_public_path(s + '.mp3', 'apps/sounds/new')}'" }.join(",\n") %> | |
}); | |
</script> |
require 'thread' | |
module ActiveSupport | |
# Inspired by the buffered logger idea by Ezra | |
class BufferedLogger | |
module Severity | |
DEBUG = 0 | |
INFO = 1 | |
WARN = 2 | |
ERROR = 3 |
require 'thread' | |
require 'logger' | |
require 'active_support/core_ext/logger' | |
require 'active_support/core_ext/class/attribute_accessors' | |
require 'active_support/deprecation' | |
require 'fileutils' | |
module ActiveSupport | |
# Inspired by the buffered logger idea by Ezra | |
class BufferedLogger |
# We have a FunnySentences class. Objects of this class generate five **wacky** phrases with random upper and lower case. | |
# Because the logic of returning the sentences in some modified form is seperate | |
# from the process of generating the sentences, we use a different object to do the generation (single responsiblity princible). | |
# Instead of just using this generation object directly, we assign it to a variable when we create a new FunnySentences object. | |
# Interally, the FunnySentencs object calls methods on this object we pass in, asking it to generate sentences for us. | |
# As long as the generator we pass in returns strings when we call generate on it, | |
# the logic in our FunnySentences class will work no matter what we use for the generator. | |
class FunnySentences |
{ | |
/* Modifier keys: start with C-m */ | |
"^m" = { | |
"^ " = ("insertText:", "\U2423"); /* C-space space */ | |
"^e" = ("insertText:", "\U21A9"); /* C-e return */ | |
"e" = ("insertText:", "\U2305"); /* e enter */ | |
"^t" = ("insertText:", "\U21E5"); /* C-t tab */ | |
"t" = ("insertText:", "\U21E4"); /* t backtab */ |