This file contains 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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"requestedTheme": "system", | |
This file contains 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
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); } |
This file contains 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 '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 |
This file contains 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
#!/usr/bin/env ruby | |
require 'uri' | |
require 'yajl' | |
require 'json' | |
require 'json-schema' | |
require 'net/http' | |
require 'digest/sha1' | |
s3_data_transfer_schema = { |
This file contains 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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
save this file as /etc/fonts/local.conf | |
--> | |
<match target="font"> | |
<edit mode="assign" name="hinting" > | |
<bool>true</bool> | |
</edit> |
This file contains 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
module WellKnownBinary | |
require 'bindata' | |
TYPE_ID = { | |
:point => 1, | |
:linestring => 2, | |
:polygon => 3, | |
:multipoint => 4, | |
:multilinestring => 5, |
This file contains 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
<# | |
.SYNOPSIS | |
'Pretty print' a given T-SQL script | |
.DESCRIPTION | |
This script will format T-SQL scripts | |
.NOTES | |
Author : Arvind Shyamsundar (arvindsh@microsoft.com) | |
This file contains 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
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'; |
This file contains 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
# =================================================== | |
# 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} |
This file contains 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
{ | |
"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, |