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
.target-fade { | |
-webkit-animation: target-fade 10s 1; | |
-moz-animation: target-fade 10s 1; | |
} | |
@-webkit-keyframes target-fade { | |
0% { background-color: rgba(80, 173, 118, .1); } | |
100% { background-color: rgba(80, 173, 118, 0); } | |
} |
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
shared_buffers = 3GB # 30% of total system RAM | |
work_mem = 5MB | |
maintenance_work_mem = 64MB | |
fsync = off | |
synchronous_commit = off | |
full_page_writes = off | |
checkpoint_segments = 100 | |
checkpoint_timeout = 45min | |
effective_cache_size = 6GB # twice shared_buffers |
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
Show hidden characters
{ | |
"detect_indentation": false, | |
"draw_white_space": "all", | |
"font_size": 17.0, | |
"indent_to_bracket": true, | |
"rulers": | |
[ | |
80 | |
], | |
"show_full_path": true, |
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
// mixins/hookup_container.js | |
App.HookupContainer = Ember.Mixin.create({ | |
// https://github.com/tehviking/giffindor/issues/1#issuecomment-51066764 | |
hookupContainer: function() { | |
this.container = SoftLacrosse.__container__; | |
}.on('init'), | |
}); | |
// components/my_component.js | |
App.MyComponent = Ember.Component.extend( |
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
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES; | |
acrobat africa alaska albert albino album | |
alcohol alex alpha amadeus amanda amazon | |
america analog animal antenna antonio apollo | |
april aroma artist aspirin athlete atlas | |
banana bandit banjo bikini bingo bonus | |
camera canada carbon casino catalog cinema | |
citizen cobra comet compact complex context | |
credit critic crystal culture david delta | |
dialog diploma doctor domino dragon drama |
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
{ | |
"detect_indentation": false, | |
"draw_white_space": "all", | |
"font_size": 17.0, | |
"ignored_packages": | |
[ | |
"Vintage", | |
"Handlebars", | |
"ColorPick" | |
], |
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 'benchmark' | |
require 'set' | |
def ordered_vowel_words_regex(words) | |
valid_words = [] | |
words.split(" ").each do |word| | |
vowels = word.scan(/[aeiou]/) | |
valid_words << word if vowels == vowels.sort | |
end | |
valid_words.join(" ") |
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
// Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then it should replace the missing second character of the final pair with an underscore ('_'). | |
// Examples: | |
// solution('abc') // should return ['ab', 'c_'] | |
// solution('abcdef') // should return ['ab', 'cd', 'ef'] | |
function paddedPairs(str) { | |
var pairs = ['']; | |
for (var i = 0; i < str.length; i++) { |
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 'rspec' | |
def ordered_vowel_words(words) | |
words.split(" ").inject([]) do |valid_words, word| | |
vowels = word.scan(/[aeiou]/) | |
valid_words.tap { |w| w << word if vowels == vowels.sort } | |
end.join(" ") | |
end | |
describe "#ordered_vowel_words" do |
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
jQuery.noConflict(); | |
(function ($) { | |
// your code in here can safely use $ for jQuery | |
})(jQuery); | |
// code using $ for another library |