Skip to content

Instantly share code, notes, and snippets.

View GenesisDCarmen's full-sized avatar

Génesis Del Carmen GenesisDCarmen

View GitHub Profile
@GenesisDCarmen
GenesisDCarmen / LICENCE SUBLIME TEXT
Created June 13, 2018 21:00
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@GenesisDCarmen
GenesisDCarmen / jQuery Change Event: Proper Binding
Created May 2, 2018 14:36 — forked from brandonaaskov/jQuery Change Event: Proper Binding
jQuery's change() event doesn't work as expected with input text fields. This, however, does work.
/*
For some reason, the change() event only fires when the input field loses focus.
Binding to other options ('change keypress paste focus textInput input') will
fire the event several times, which is bad. The below code works even when
content is pasted into the text field, and only fires once as expected.
*/
$('#search-form .term').bind('input', function(){
console.log('this actually works');
});
@GenesisDCarmen
GenesisDCarmen / MinGW-w64.sublime-build
Created April 24, 2018 04:25 — forked from sagebind/MinGW-w64.sublime-build
Sublime Text 3 C++ build system for mingw-w64
{
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
"path": "c:/Program Files/mingw-w64/mingw64/bin",
"shell": true,
"variants": [
{
"name": "Run",
@GenesisDCarmen
GenesisDCarmen / Maintenance_Message.html
Last active April 23, 2018 15:03 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@GenesisDCarmen
GenesisDCarmen / gist:c4152dd9a0fcb729b87c26d49fd43603
Created February 2, 2018 00:15 — forked from anonymous/gist:58f817ed9b9b8b155d51a49c015370b9
Code for Simon Says Arduino Wiring and Code Tutorial
// Code for Simon Says Arduino Wiring and Code Tutorial
// Video found at: https://www.youtube.com/watch?v=TJiz7PT21B4
// Define all the LED and Button pins.
// {RED, GREEN, YELLOW, BLUE}
int buttons[] = {3, 5, 7, 9}; //The four button input pins
int leds[] = {2, 4, 6, 8}; // LED pins
int sequence[100];