Skip to content

Instantly share code, notes, and snippets.

View jakl's full-sized avatar
💭
🦊

James Koval jakl

💭
🦊
View GitHub Profile
@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 / 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 / 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 / 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 / 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 / .gitignore
Last active December 24, 2015 04:59
obfuscated.js
node_modules/
@jakl
jakl / .gitignore
Last active December 24, 2015 03:59
nodeschool.io Learn You The Node.js For Much Win!
node_modules/
@jakl
jakl / index.html
Created September 25, 2013 07:13
old jediset
Content-type: text/html
<title>JediSet</title><head><style type="text/css"> .bg { color: #00FF00; background: black; } </style></head><body class=bg><a href="http://github.com/jediknight304/jediset">JediSet Source at GitHub.com/Jediknight304</a><br /><pre>If looks like you aren't using any options, but options are kool
After your url which should end in .pl type a ? then any or all of these things
rows=7 or any number of columns you want besides 7
cards=81 81 is the maximum; more defaults back to 81
debug=4 numbers less than 4 will show less debug information
version=1 this is 1 or 0, and will show the current version of the program
help=1 this is also 1 or 0, and will show you a terminal manual page
listsets=1 show all sets (CHEATER)
@jakl
jakl / _cell.html.erb
Last active January 4, 2018 14:34
Rails Table Partial
<td width="<%= width %>">
<% if cell %>
<%= render partial: cell_partial, object: cell %>
<% end %>
</td>
@jakl
jakl / README.md
Last active December 23, 2015 00:49
Git Branch with Smart Directories

git-bd setup

mkdir workspace
cd workspace
git clone https://github.com/nnutter/git-bd.git
cd
mkdir bin
cd bin