I hereby claim:
- I am peregrinogris on github.
- I am peregrinogris (https://keybase.io/peregrinogris) on keybase.
- I have a public key ASAZc3TC420CeX5vwpJmnILCDp64CP67AIxLC-P2NISSbgo
To claim this, I am signing this object:
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Spanish to English Papercuts</name> | |
<item> | |
<name>Swap '§' and '`'</name> | |
<identifier>private.spanish_english_papercuts_backquote</identifier> | |
<autogen>__KeyToKey__ KeyCode::UK_SECTION, KeyCode::BACKQUOTE</autogen> | |
<autogen>__KeyToKey__ KeyCode::BACKQUOTE, KeyCode::UK_SECTION</autogen> | |
</item> |
class MaxSearch: | |
def __init__(self, max_value=2**16): | |
self.max_value = max_value | |
# Override this method with your validity check | |
def check_result(self, number): | |
pass | |
def scan(self, min_=0): | |
max_ = self.max_value |
I hereby claim:
To claim this, I am signing this object:
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
di = diff -w | |
dic = diff -w --cached | |
ll = log --date local --no-merges --format='%C(yellow)%h%Creset %ad %Cgreen%aN%Creset %s' | |
forgot = commit --amend -C HEAD | |
branches = branch -av | |
fbranch = !git ll master..`git rev-parse --abbrev-ref HEAD` |
Install:
$ npm install eslint babel-eslint eslint-config-airbnb
.eslintrc:
{
"extends": "airbnb/base",
"parser": "babel-eslint",
"rules": {
"max-len": [2, 80, 2, {
var texts = Array.map( | |
document.querySelectorAll('#queue .item_content'), | |
elem => { | |
let link_text = elem.querySelector('.title').text; | |
let link_url = decodeURIComponent(elem.querySelector('.original_url').href.replace('https://getpocket.com/redirect?url=', '')); | |
let tags = Array.map(elem.querySelectorAll('.tag'), elem => elem.text); | |
return [ | |
link_text, | |
link_url, | |
tags |
<html> | |
<head> | |
<link rel="stylesheet" href="http://localhost:3000/build.css"> | |
<!-- <script src="https://d2y1h8z11rh263.cloudfront.net/js/zepto.custom.js"></script> --> | |
</head> | |
<body> | |
<select id="timezone" name="timezone" class="select-control"><option value="America/Sao_Paulo">Brasilia</option></select> | |
<input type=reset> | |
<script type="text/javascript"> | |
var select = document.createElement('select'); |
foo.js |
def countComb(coins, change, solutions, current): | |
ret = 0 | |
if sum(current) < change: | |
for coin in coins: | |
newComb = [c for c in current] | |
newComb.append(coin) | |
ret += countComb(coins, change, solutions, newComb) | |
if sum(current) == change: | |
current.sort() | |
if current not in solutions: |
var request = require('request'); | |
var api_key = "<KLOUT_API_KEY>"; | |
var handles = ["user1", "user2"]; | |
var twitter_url = "http://api.klout.com/v2/identity.json/twitter?screenName="; | |
var klout_url = "http://api.klout.com/v2/user.json/:klout_id/score?"; | |
var user, sum = 0, idx = 0; | |
function addUpUser(){ |