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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$ru: ( | |
name: 'ru', | |
font-size: 12px, | |
font-family: "Helvetica", | |
letter-spacing: 1px | |
); |
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
# Description: | |
# emoji.coffee - Replaces :text: or text with emojis. | |
# Great for IRC or anywhere not already emojified. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# |
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
var clickButton = function(actionElement) { | |
console.log('actionElement', actionElement); | |
$(actionElement).click(); | |
} | |
var defaultStats = { | |
'questions': { | |
'id': '#egg-stat-questions', | |
'action':clickButton.bind(null,'#egg-action-ask button') | |
}, |
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
/* [Basic] */ | |
// Devices longest dimention. | |
device_height = 139; | |
// Second Longest Dimention | |
device_width = 67; | |
// Amount of "tray" for the device . Distance between bottom of device well and top of device well. Tip: Increase this to reduce angle between device width/height and device height/width offsets, or set offsets to 0 to get no overhang at all. | |
device_depth = 5; | |
//Modify the device tray opening height relative to its base height. |
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
scrollByAnimated = function(scrollY, duration){ | |
var startTime = new Date().getTime(); | |
var startY = window.scrollY; | |
var endY = startY + scrollY; | |
var currentY = startY; | |
var directionY = scrollY > 0 ? 'down' : 'up'; | |
var animationComplete; | |
var count = 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
//You have to run the script from the ExtendScript tool (Applications/Utilities/Adobe Utilities-CS6/ExtendScript Toolkit CS6/ExtendScript Toolkit.app) | |
/*JS*/ | |
var counts = app.activeDocument.countItems; | |
var NumberOfCounts = counts.length; | |
var count = 0; | |
$.write("["); | |
while(count < NumberOfCounts ){ | |
var newPos ={}; |
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
# Scan it for all instances of (unescaped) <rules> | |
# Each match will be an array containing the portion of string before | |
# the <rule>; and the <rule> itself (which may be empty on the last match) | |
choice.scan(Regexp.new("/(.*?(?<!\\)(?:\\\\)*)(<.*?>|$)/",nil,"u")) do |match| | |
local_res << match[0] | |
unless match[1].empty? | |
local_res << invoke(match[1].match(/<(.*?)>/)[1].to_sym) | |
end | |
end |
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
;(function($){ | |
$.extend($, { | |
getParam: function(n,u) { | |
if(!u) var u = window.location.search; | |
var match = RegExp('[?&]' + n + '=([^&]*)').exec(u); | |
return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); | |
} | |
}) | |
})(window.Zepto || window.jQuery) |
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
{ name = 'Alternating Tabs'; | |
scope = 'meta.even-tab'; | |
settings = { | |
fontStyle = 'foldGuide'; | |
foreground = '#353535'; | |
}; | |
}, | |
{ name = 'Alternating Tabs'; | |
scope = 'meta.odd-tab'; |
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
import processing.core.*; | |
import twitter4j.*; | |
import twitter4j.conf.ConfigurationBuilder; | |
private static final long serialVersionUID = 1L; | |
private static TwitterStream tw; | |