Skip to content

Instantly share code, notes, and snippets.

View sinak's full-sized avatar

Sina Khanifar sinak

View GitHub Profile
'om': {
name: 'Free Press',
policy: 'http://www.freepress.net/privacy-copyright',
weight: 100
},
'fftf': {
name: 'Fight for the Future',
policy: 'http://www.fightforthefuture.org/privacy/',
weight: 100
var referalMap = {
'fp': {
name: 'Free Press',
policy: 'http://www.freepress.net/privacy-copyright'
},
'fftf': {
name: 'Fight for the Future',
policy: 'http://www.fightforthefuture.org/privacy/'
},
'org': {
name: 'Open Rights Group',
policy: 'https://www.openrightsgroup.org/privacy/'
},
'pi': {
name: 'Privacy International',
policy: 'https://www.privacyinternational.org/privacy-and-cookies-policy'
},
'eff': {
[
{
"country" : "AF",
"count" : 954
},
{
"country" : "US",
"count" : 5197
},
{

Keybase proof

I hereby claim:

  • I am sinak on github.
  • I am sinak (https://keybase.io/sinak) on keybase.
  • I have a public key whose fingerprint is 67B4 1CAF B2AF 069F 8480 0D78 E97C C024 3985 13DD

To claim this, I am signing this object:

if 'createTouch' of document
ignore = /:hover\b/
try
for stylesheet in document.styleSheets
idxsToDelete = []
# detect hover rules
for rule, idx in stylesheet.cssRules
if rule.type is CSSRule.STYLE_RULE and ignore.test(rule.selectorText)
newSelector = _.reject rule.selectorText.split(","), (s) -> ignore.test s
if newSelector.length > 0
Set 1
- "Abortion / Family Planning"
- "Agriculture"
- "Animal Welfare"
- "Banking / Finance"
- "Business"
- "Defense"
- "Education"
- "Energy"
- "Environment"
{% paginate collections.all.products by 1000 %}
{% if pass_product_handle and collections["all"] %}
{% assign the_collection = collections["all"] %}
{% for product in the_collection.products offset: 0 %}
{% if pass_product_handle == product.handle %}
{% assign return = product %}
{% endif %}
{% endfor %}
{% endif %}
@sinak
sinak / gist:6984913
Created October 15, 2013 00:57
airmail trace
This file has been truncated, but you can view the full file.
Sampling process 15888 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling AirMail Beta (pid 15888) every 1 millisecond
Process: AirMail Beta [15888]
Path: /Applications/AirMail Beta.app/Contents/MacOS/AirMail Beta
Load Address: 0x1026eb000
Identifier: it.bloop.airmail.beta7
Version: 1.2 (208)
Code Type: X86-64 (Native)
Parent Process: launchd [144]
@sinak
sinak / gist:7361214
Created November 7, 2013 20:22
Add this text as a bookmark to download Soundcloud songs.
javascript: (function(a){var b,c,d,e=$(".sound"),f=require("config").get("client_id"),g=require("lib/connect").getAuthToken(),h=require("lib/helpers/conversion-helper"),i,j,k,l,m;for(b=e.length-1;b>=0;b--){c=$(e[b]);if(0==c.find(".sc-button-download").length){var n="https://soundcloud.com"+(c.find(".soundTitle__title").attr("href")||a.location.pathname);k={url:n,client_id:f},m=function(a){return function(b){var c={client_id:f};l=require("lib/url").stringify({query:c},b.stream_url+".mp3"),d=a.find(".sound__soundActions .sc-button-group"),j=d.find(".sc-button:first")[0].className.match(/sc-button-((?:small)|(?:medium))/)[1],i=$('<a class="sc-button sc-button-download sc-button-icon sc-button-responsive">Download</a>').attr({title:"Download this sound ("+h.bytesToMB(b.original_content_size)+")",href:l}).addClass("sc-button-"+j),d.append(i)}}(c),$.getJSON("http://api.soundcloud.com/resolve.json",k).success(m)}}})(window)