Skip to content

Instantly share code, notes, and snippets.

View kossnocorp's full-sized avatar
Shipping

Sasha Koss kossnocorp

Shipping
View GitHub Profile
min-screen(end_at)
@media screen and (min-width: end_at)
{block}
screen(start_at)
@media screen and (max-width: start_at)
{block}
screen-1280()
+screen(1323px)
This file has been truncated, but you can view the full file.
window.commitsOrigin = {
"url": "https://api.github.com/repos/facebook/immutable-js/compare/b82b6191fb18395d22ff516adf06a61124ffe6d6...HEAD",
"html_url": "https://github.com/facebook/immutable-js/compare/b82b6191fb18395d22ff516adf06a61124ffe6d6...HEAD",
"permalink_url": "https://github.com/facebook/immutable-js/compare/facebook:b82b619...facebook:a1608fc",
"diff_url": "https://github.com/facebook/immutable-js/compare/b82b6191fb18395d22ff516adf06a61124ffe6d6...HEAD.diff",
"patch_url": "https://github.com/facebook/immutable-js/compare/b82b6191fb18395d22ff516adf06a61124ffe6d6...HEAD.patch",
"base_commit": {
"sha": "b82b6191fb18395d22ff516adf06a61124ffe6d6",
"commit": {
"author": {
@kossnocorp
kossnocorp / 1_easings.styl
Last active July 12, 2016 04:49 — forked from jamesflorentino/easing.styl
Easings set for Stylus + JSON for preview on http://cubic-bezier.com
// Cubic
ease_in_cubic = cubic-bezier(0.550, 0.055, 0.675, 0.190)
ease_out_cubic = cubic-bezier(0.215, 0.610, 0.355, 1.000)
ease_in_out_cubic = cubic-bezier(0.645, 0.045, 0.355, 1.000)
// Circ
ease_in_circ = cubic-bezier(0.600, 0.040, 0.980, 0.335)
ease_out_circ = cubic-bezier(0.075, 0.820, 0.165, 1.000)
ease_in_out_circ = cubic-bezier(0.785, 0.135, 0.150, 0.860)
describe('true', function() {
it('must be true', function() {
expect(true).to.be.true;
});
it('must not be true', function() {
expect(true).to.not.be.false;
});
});

Keybase proof

I hereby claim:

  • I am kossnocorp on github.
  • I am kossnocorp (https://keybase.io/kossnocorp) on keybase.
  • I have a public key whose fingerprint is B6CF C68E A2E2 3590 869C 09AF 66BF 23C4 E7A3 86D9

To claim this, I am signing this object:

describe 'TargetClass', ->
beforeEach ->
@domState = $('*')
afterEach ->
$('*').each (i, el) =>
$(el).remove() if @domState.filter(el).length is 0
# ...
def back_or_home_path
referrer = controller.respond_to?(:request) && controller.request.env['HTTP_REFERER']
local_referrer = referrer && URI.parse(referrer).host == controller.request.host
if referrer && local_referrer
referrer
else
root_path
end
end
ACCESS_KEY_ID = 'xxx'
SECRET_ACCESS_KEY = 'xxx'
COUNT_OF_REQUETS = 100
task :test do
ec2 = AWS::EC2.new(access_key_id: ACCESS_KEY_ID, secret_access_key: SECRET_ACCESS_KEY)
results = ec2.regions.map do |region|
mean = `ab -c 1 -n #{COUNT_OF_REQUETS} #{region.endpoint}/ping | perl -n -e'/([\\d\\.]+)(?= \\[ms\\] \\(mean\\))/ && print $1'`.to_f
@kossnocorp
kossnocorp / gist:7970373
Last active December 31, 2015 09:59
Closest EC2 regions (mean per request, for 100 requests, results for Bangkok).
[ap-southeast-1]
243.258ms
[ap-northeast-1]
331.417ms
[ap-southeast-2]
339.294ms
[eu-west-1]
430.62ms
[us-west-1]
478.163ms
let s:calls_for_block = 0
function! BlockShiftGuard(size)
let s:calls_for_block = s:calls_for_block + 1
if s:calls_for_block < a:size
return 0
endif
let s:calls_for_block = 0