I hereby claim:
- I am tylermenezes on github.
- I am tylermenezes (https://keybase.io/tylermenezes) on keybase.
- I have a public key whose fingerprint is AB9D CF71 97DB 8E12 7D52 BD76 98C0 08FE 06DF 0C41
To claim this, I am signing this object:
$.makeArray($('.financial-transaction-item').map(function(x, e){ | |
if (!$(e).find('.financial-transaction-checkbox input').is(':checked')) return; | |
var is_negative = $(e).is('.expense'); | |
return { | |
date: $(e).find('.financial-transaction-date input').val(), | |
description: $(e).find('.financial-transaction-description input').val(), | |
amount: parseFloat($(e).find('.financial-transaction-amount .js-amount-readonly').attr('title').replace(',', '')) * (is_negative? -1 : 1), | |
raw_amount: $(e).find('.financial-transaction-amount .js-amount-readonly').attr('title'), | |
elem: e | |
};}).map(function(x,e){ return e.date+',"'+e.description+'",'+e.amount; })).join("\n") |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Draft Typekitizer | |
// @namespace http://tyler.menez.es/ | |
// @version 1 | |
// @description Adds Typekit to Draft | |
// @match http*://*.draftin.com/* | |
// @copyright 2013 Tyler Menezes | |
// ==/UserScript== | |
(function() { |
#!/bin/bash | |
echo "remove Mod1 = Alt_L | |
remove Mod1 = Alt_R | |
remove Control = Control_L | |
remove Control = Control_R | |
remove Mod4 = Super_L | |
remove Mod4 = Super_R | |
keysym Super_R = Control_R |
(function(){ | |
var timeout = 0; | |
window.confirm = function(){return true;} | |
$("a[title='Edit this link']").each(function(){ | |
var editBtn = $(this); | |
setTimeout(function(){editBtn.click();}, timeout); | |
timeout += 750; | |
setTimeout(function(){$("a[href='#remove']").click();}, timeout); | |
timeout += 2000; |
import os | |
from subprocess import call | |
def get_projects(github_directory): | |
top_level_directories = [d for d in os.listdir(github_directory)] | |
for directory in top_level_directories: | |
project_directories = [[directory, p] for p in os.listdir(os.path.join(github_directory, directory))] | |
for project in project_directories: | |
yield project |
diff --git a/src/intel_display.c b/src/intel_display.c | |
index 2c93c2d..57dea60 100644 | |
--- a/src/intel_display.c | |
+++ b/src/intel_display.c | |
@@ -121,6 +121,8 @@ struct intel_output { | |
struct list link; | |
}; | |
+#include "virtual_display.c" | |
+ |
public function __post_index() | |
{ | |
$to = $this->request->request('to'); | |
if ($to === NULL) { | |
$to = '/index.html'; | |
} | |
$to = \CuteControllers\Router::link($to); |
(function(){ | |
var i = 0; | |
var count = $('.Album.unavailable,.Album.preview').length; | |
console.log('Found ' + count + ' albums to remove'); | |
var timeout = 0; | |
$('.Album.unavailable,.Album.preview').each(function(){ | |
var instance_i = i++; | |
var album = $(this); | |
album.trigger('mouseover').mouseenter(); | |
album.find('a,div,span,image').trigger('mouseover').mouseenter(); |
import re | |
import sys | |
class Transaction: | |
def __init__(self, lines): | |
for line in lines.split("\n"): | |
parts = re.sub('\s+', ' ', line.strip()).split(' ') | |
if(parts[0][0:8] == 'CUSTOMER'): | |
if (parts[1][0:4] == '****'): | |
self.card = parts[1][5:] |