Skip to content

Instantly share code, notes, and snippets.

View zackn9ne's full-sized avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
@zackn9ne
zackn9ne / gist:a82764127d9aacc3751a
Created December 1, 2014 16:15
regex to find space, then everything in brackets
\[(.*?)\]
@zackn9ne
zackn9ne / custom-radial-button.html
Created December 4, 2014 20:58
custom radial button
<div>
<label class=”label_radio”>
<input type=”radio” name=”radioList1” value=”1”> Option 1
</label>
<label class=”label_radio”>
<input type=”radio” name=” radioList1” value=”2”> Option 2
</label>
</div>
@zackn9ne
zackn9ne / radial_and_checkboxes.js
Created December 5, 2014 23:07
a script to toggle checkboxes and radial buttons where ie8 complaince is heeded
var customUI = {
toggleChecked: function (labelSelector) {
$(labelSelector).each(function () {
var label = $(this);
var input = label.find("input:first");
if (input.length > 0) {
if (input.get(0).checked) {
label.addClass("checked");
} else {
label.removeClass("checked");
@zackn9ne
zackn9ne / radial_buttons.html
Created December 5, 2014 23:10
radial button code html
<div class="radioList">
<label class="label_radio">
<input type="radio" name="radioList" value="1"> Yes
</label>
<label class="label_radio">
<input type="radio" name="radioList" value="2"> No
</label>
</div>
@zackn9ne
zackn9ne / check_n_radial.scss
Created December 5, 2014 23:10
checkboxes and radial buttons scss
/* FORM GUTS */
form label {
display: block;
input[type="checkbox"], input[type="radio"] {
display: none;
}
&.label_radio {
position: relative;
@zackn9ne
zackn9ne / user.sublime-keymap
Created December 8, 2014 15:07
sublime vim keymappings
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{"keys": ["ctrl+u"], "command": "scroll_lines", "args": {"amount": 40.0}, "context": [{ "key": "setting.command_mode" }]},
{"keys": ["ctrl+d"], "command": "scroll_lines", "args": {"amount": -40.0}, "context": [{"key": "setting.command_mode"}]}
@zackn9ne
zackn9ne / clear_screen.js
Created December 14, 2014 18:17
cli clear
function clear() {
process.stdout.write('\u001B[2J\u001B[0;0f');
}
@zackn9ne
zackn9ne / My.sublime-theme
Created January 6, 2015 22:07
My sublime settings... Preferences // Browse Packages..
[
{
"class": "label_control",
"color": [127, 255, 0],
"shadow_color": [24, 24, 24],
"shadow_offset": [0, -1],
"font.size": 16
},
{
"class": "button_control",
@zackn9ne
zackn9ne / tunnel.sh
Created March 29, 2015 19:57
ssh tunnellilng
ssh -D 9999 -C netkam@zackn9ne.duckdns.org
@zackn9ne
zackn9ne / safaritaculous.scpt
Created July 22, 2015 03:41
export safari tabs to MD file with timestamp ;)
(*
Export All Safari Tabs in All Open Windows to a Markdown File
July 13, 2015
// SCRIPT PAGE
http://hegde.me/urlsafari
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file