Skip to content

Instantly share code, notes, and snippets.

View jimoconnell's full-sized avatar
🎯
Focusing

Jim O'Connell jimoconnell

🎯
Focusing
View GitHub Profile
@jimoconnell
jimoconnell / foo
Last active December 25, 2015 05:49
Test
We will create the remote repository first.
1
2
3
$ mkdir -p Projects/myeliteproject.git && cd Projects/myeliteproject.git
$ git init --bare
$ exit
We need the “—bare” flag. If you want to know why, read the manual and have in mind that this is a remote repository.
@jimoconnell
jimoconnell / accordion_disabled_but_readable
Created October 24, 2013 13:31
This is a way to freeze the jQuery Accordion, but not have it all greyed-out. For our purposes, it should allow the embedding of modal forms in the accordion panels, but keep the user from hiding or destroying an unsaved form. Try it on the console of this page: http://jqueryui.com/resources/demos/accordion/default.html JSFiddle at: http://jsfid…
$("#accordion").accordion( "disable" );
$("#accordion").removeClass("ui-state-disabled");
$("#accordion").find("*").removeClass("ui-state-disabled");
$("#accordion").accordion( "enable" );
@jimoconnell
jimoconnell / gist:7266453
Created November 1, 2013 14:44
Instantiate Jquery accordion with all tabs closed
jQuery( ".accordion" ).accordion({
collapsible: true,
autoHeight: false,
active: false
});
@jimoconnell
jimoconnell / foo.geojson
Last active December 30, 2015 03:19
test of geojson rendering
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimoconnell
jimoconnell / todo.txt
Last active January 2, 2016 08:19
Stuff to get for the move
Networking Stuff:
1000 feet of Cat5e, crimper kit and strain relief boots:
http://www.amazon.com/Cat5e-Ethernet-Cable-000ft-Cat-5e/dp/B0092TG310/
http://www.amazon.com/Cable-Tester-Crimper-Connector-Network/dp/B008UY5WL0/
http://www.amazon.com/Cable-Matters-4-Pack-Strain-Relief/dp/B0049QNV70/
Will we be running through walls? If so, fish tape would be handy:
http://www.amazon.com/JAYBRAKE-31-010-Ideal-50-Ft-Fish/dp/B00E4TCORA/
@jimoconnell
jimoconnell / warnings
Created January 8, 2014 15:23
Fraud Warnings
Alabama "A person who knowingly and with intent to injure, defraud, or deceive an insurance company files a claim containing false, incomplete or misleading information may be prosecuted under this title.”
Arizona "Any person who knowingly presents a false or fraudulent claim for payment for a loss or benefit or knowingly presents false information in an application for insurance is guilty of a crime and may be subject to fines and confinement in prison.” "
Arkansas "Any person who knowingly presents a false or fraudulent claim for payment for a loss or benefit or knowingly presents false information in an application for insurance is guilty of a crime and may be subject to fines and confinement in prison”.
California "For your protection California law requires the following to appear on this form: Any person who knowingly presents false or fraudulent claim for the payment of a loss is guilty of a crime and may be subject to fines and confinement in state prison."
// Copied from:
// http://www.instructables.com/id/Interface-a-rotary-phone-dial-to-an-Arduino/?ALLSTEPS
// By Instructables user guidomax
int needToPrint = 0;
int count;
int in = 2;
int lastState = LOW;
int trueState = LOW;
long lastStateChangeTime = 0;
int cleared = 0;
@jimoconnell
jimoconnell / init.lua
Last active February 12, 2017 21:05
Code by HoracioBouzas, formatted for use with ESPlorer
--http://www.instructables.com/id/ESP8266-based-web-configurable-wifi-general-purpos-1/
--Code by HoracioBouzas, formatted for use with ESPlorer by jimoconnell
print("WIFI control");
-- put module in AP mode
wifi.setmode(wifi.SOFTAP);
print("ESP8266 mode is: " .. wifi.getmode());
cfg={};
-- Set the SSID of the module in AP mode and access password
cfg.ssid="ESP8266";
cfg.pwd="passwordpassword";
@jimoconnell
jimoconnell / Mobile-test
Last active July 3, 2016 12:11
Mobile test
Apparently you *can* edit gists using working copy and textastic, but it's hardly intuitive