Skip to content

Instantly share code, notes, and snippets.

View jakl's full-sized avatar
💭
🦊

James Koval jakl

💭
🦊
View GitHub Profile
@jakl
jakl / .gitignore
Last active December 24, 2015 03:59
nodeschool.io Learn You The Node.js For Much Win!
node_modules/
@jakl
jakl / .gitignore
Last active December 24, 2015 04:59
obfuscated.js
node_modules/
@jakl
jakl / incomplete_locales.rb
Created October 2, 2013 23:19
Locales that havn't finished translating an import yet
class Import
def self.incomplete_locales
Locale.where(id:
self.phrases.all_globally_pending.joins(
'JOIN projects_locales'\
' on phrases_projects.project_id = projects_locales.project_id'\
' and projects_locales.status_id != 0'
).pluck('projects_locales.locale_id')
)
end
@jakl
jakl / test_clicking_checkbox.rb
Created October 10, 2013 22:18
capybara why!!!
######### CHROME + JQUERY ###############
$('.phrase-checkbox').attr('checked')
undefined
$('.toggle-phrases').attr('checked')
undefined
$('.toggle-phrases').click()
[ <input class=​"toggle-phrases" type=​"checkbox">​ ]
@jakl
jakl / README.md
Last active December 28, 2015 11:19
Google doc jsonp test

Gdoc Jsonp

Google doc spreadsheets can be used as client-side-only data endpoints with the jsonp protocol

Here is a simple demo of my document that contains

name    	 age
--------------
@jakl
jakl / cs.js
Last active January 3, 2016 20:09
// ==UserScript==
// @name Access free ChristianScience.com content - most content is out of copyright, from 1800's
// @namespace christianscience.com
// @version 0.2
// @description enter something useful
// @match http://*.christianscience.com/*
// @copyright 2014+, @jakl
// ==/UserScript==
if (sharecode && $('#email').length)
@jakl
jakl / index.html
Created January 25, 2014 08:45
Collapsing radio buttons, rapid hack
<head>
<link rel="stylesheet" type="text/css" href="radios.css">
</head>
<body>
<div class=radios></div>
<script src='https://code.jquery.com/jquery-2.1.0.min.js'></script>
<script src='./radios.js'></script>
</body>
@jakl
jakl / index.js
Created April 3, 2014 21:41
requirebin sketch
// require something
require('twitter-text')
@jakl
jakl / index.html
Created April 9, 2014 07:38
watermark
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>*|MC:SUBJECT|*</title>
<style type="text/css">
/* Mail Chimp Boiler Plate */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
@jakl
jakl / header.jpg
Last active August 29, 2015 13:59
thingy
header.jpg