Skip to content

Instantly share code, notes, and snippets.

View warengonzaga's full-sized avatar

Waren Gonzaga warengonzaga

View GitHub Profile
@warengonzaga
warengonzaga / gist:ac8c7579f184b043f6479fab3b707e88
Created June 20, 2016 15:07 — forked from scmx/upgrade-install-ruby-2-1-2-ubuntu-12-04.md
Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04
# Reference http://stackoverflow.com/a/18490935/2037928
# Login as root
# Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
# Download appropriate ruby version https://www.ruby-lang.org/en/downloads/
@warengonzaga
warengonzaga / disabledChromeShortcut.js
Created September 3, 2016 14:51
Disable Script to Disable Chrome Features
$(document).keydown(function(event){
if(event.keyCode==123){
disabledAlert();
console.log("Disabled! By GhostGeekBinary");
console.log("Trying to press F12");
return false; // Prevent from F12
}
else if(event.ctrlKey && event.shiftKey && event.keyCode==73){
disabledAlert();
@warengonzaga
warengonzaga / HTML5Boilerplate.jade
Created September 9, 2016 09:00
This is the version of HTML5 Boilerplate in Jade!
doctype html
html.no-js(lang='')
head
meta(charset='utf-8')
meta(http-equiv='x-ua-compatible', content='ie=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='apple-touch-icon', href='apple-touch-icon.png')
// Place favicon.ico in the root directory
@warengonzaga
warengonzaga / HTML5Boilerplate.haml
Created September 9, 2016 09:04
This is the Haml version of HTML5 Boilerplate.
!!!
%html.no-js{:lang => ""}
%head
%meta{:charset => "utf-8"}/
%meta{:content => "ie=edge", "http-equiv" => "x-ua-compatible"}/
%title
%meta{:content => "", :name => "description"}/
%meta{:content => "width=device-width, initial-scale=1", :name => "viewport"}/
%link{:href => "apple-touch-icon.png", :rel => "apple-touch-icon"}/
/ Place favicon.ico in the root directory
@warengonzaga
warengonzaga / fbscript-auto_remove_group_member.js
Created August 29, 2016 08:07
Facebook Scripts - Auto Remove Group Member
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {
@warengonzaga
warengonzaga / electronic_matrix_ily.ino
Last active February 13, 2017 03:33
Electronic Matrix — I Love You (Project E.M.I.L.Y)
/**
* Electronic Matrix — I Love You (Project E.M.I.L.Y)
* by Waren Gonzaga
* Version: 1.0.6
*
* A velentine project for saying I Love You!
* Check this project on Instructables.com
* Link: https://www.instructables.com/id/Electronic-Matrix-I-Love-You
*
* Contribute to improve this project on gist!
@warengonzaga
warengonzaga / custom_storefront_copyright_message.txt
Created November 16, 2017 20:41
Custom Store Front Copyright Message
@warengonzaga
warengonzaga / media_query_breakpoints.css
Created November 22, 2017 17:58
Media Query Breakpoints for Responsive Web Development.
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@warengonzaga
warengonzaga / usefulgitcmd_keep_fork_updated.md
Last active December 4, 2017 22:55
How to keep your forked repository up to date?

Keep Your Forked Repository Up to Date!

Useful Git Commands

  • Add the remote from your original repository in your forked repository:

git remote add upstream git://github.com/original-developer/original-repository.git
git fetch upstream

  • Update your forked repository by typing the git command below:
@warengonzaga
warengonzaga / warens_led_music_visualizer.ino
Last active April 2, 2019 20:19
Waren's L.E.D Music Visualizer (The Project W.L.E.D.M.V)
/**
* Waren's LED Music Visualizer (Project W.L.E.D.M.V)
* by Waren Gonzaga
* Version: 1.0.1
*
* An Arduino project that translates the sound into lights.
* Check this project on Instructables.com
* Link: https://www.instructables.com/id/Warens-LED-Music-Visualizer
*
* Contribute to improve this project on gist!