I hereby claim:
- I am jheidt on github.
- I am jheidt (https://keybase.io/jheidt) on keybase.
- I have a public key ASDAOxUGYzlyylAoT7Ic4vUzcoacT0fBAiEaRvaOghsEoAo
To claim this, I am signing this object:
if( !!this['claimIntervalId'] && this['claimIntervalId'] > 0) { | |
console.log(`clearing interval (id = ${ this['claimIntervalId'] })`); | |
window.clearInterval(this['claimIntervalId']); | |
} | |
claimIntervalId = window.setInterval( () => { | |
const claim = document.querySelector('div.claimable-bonus__icon'); | |
if(null !== claim) { | |
console.info('claimed reward!'); | |
try { claim.parentElement.parentElement.click(); } | |
catch(e) { console.error(e); } |
I hereby claim:
To claim this, I am signing this object:
require 'open-uri' | |
class Bingy | |
LANDING_PAGE = 'http://www.bing.com/translator'.freeze | |
SPEAK_URL = LANDING_PAGE + '/api/language/Speak?locale=en-US&media=audio/mp3' | |
def initialize(text, gender = 'male') | |
@user_agent = 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36' | |
@params = { text: text, gender: gender } | |
end |
CREATE OR REPLACE FUNCTION empty(TEXT) | |
RETURNS bool AS | |
$$ SELECT $1 ~ '^[[:space:]]*$'; $$ | |
LANGUAGE sql | |
IMMUTABLE; | |
COMMENT ON FUNCTION empty(TEXT) | |
IS 'Find empty strings or strings containing only whitespace'; |
Live coded in 30 minutes on the 11th of August 2015. Uses transform-style: preserve-3d
, so it can only work in browsers supporting it. This excludes IE up to and including 11. It's also ugly if CSS filters are not supported. Tested and works in Firefox 39, Chrome 44, 46 (canary)/ Opera 31 beta on Windows 8. Inspiration:
ZSH-LOVERS(1) ZSH-LOVERS(1) | |
NAME | |
zsh-lovers - tips, tricks and examples for the Z shell | |
SYNOPSIS | |
Just read it. ;-) |
# -*- encoding: utf-8 -*- | |
# | |
# jheidt's kickass pry config | |
# | |
Pry.editor = proc { |file, line| "/usr/bin/subl #{file} +#{line}" } | |
Pry.config.theme = 'tomorrow' | |
Pry.config.ls.heading_color = :white |
# =================================================== | |
# CLOUDERA 5.1.0 | |
# =================================================== | |
declare CDH_SUFFIX=cdh5.1.0 | |
declare CDH_HOME=/opt/${CDH_SUFFIX} | |
declare AVRO_DIR_NAME=avro-1.7.5-${CDH_SUFFIX} | |
declare DATAFU_DIR_NAME=datafu-1.1.0 | |
declare HADOOP_DIR_NAME=hadoop-2.3.0-${CDH_SUFFIX} |
{ | |
"auto_complete": true, | |
"auto_find_in_selection": true, | |
"auto_match_enabled": false, | |
"bold_folder_labels": true, | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme", | |
"colored_folder_glyphs": true, |
I hereby claim:
To claim this, I am signing this object: