Skip to content

Instantly share code, notes, and snippets.

View gabouh's full-sized avatar
💭
I may be slow to respond.

Gabriel gabouh

💭
I may be slow to respond.
View GitHub Profile
/*
highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !!
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
@gabouh
gabouh / rfc.html
Created April 29, 2016 07:27 — forked from rvazquezglez/rfc.html
Calcula RFC (registro federal de causantes) sin homoclave usando jQuery
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
function calculaRFC() {
function quitaArticulos(palabra) {
return palabra.replace("DEL ", "").replace("LAS ", "").replace("DE ",
"").replace("LA ", "").replace("Y ", "").replace("A ", "");
}
function esVocal(letra) {
@gabouh
gabouh / pdftotext.html
Created May 8, 2016 05:21 — forked from hubgit/pdftotext.html
Embedding the PDFToText service in HTML
<!-- edit this; the PDF file must be on the same domain as this page -->
<iframe id="input" src="your-file.pdf"></iframe>
<!-- embed the pdftotext service as an iframe -->
<iframe id="processor" src="http://hubgit.github.com/2011/11/pdftotext/"></iframe>
<!-- a container for the output -->
<div id="output"></div>
<script>
@gabouh
gabouh / buffertowav.js
Created May 8, 2016 07:06 — forked from kevincennis/buffertowav.js
Buffer to WAV
// assuming a var named `buffer` exists and is an AudioBuffer instance
// start a new worker
// we can't use Recorder directly, since it doesn't support what we're trying to do
var worker = new Worker('recorderWorker.js');
// initialize the new worker
worker.postMessage({
command: 'init',
@gabouh
gabouh / lexer.py
Created May 30, 2016 05:30 — forked from tylercrompton/lexer.py
A lexical analyzer for Python
class Token:
def __init__(self, value, type):
self.value = value
self.type = type
def __repr__(self):
return '{}({}, {})'.format(self.__class__.__name__, repr(self.value), repr(self.type))
class PatternError(ValueError):
pass
@gabouh
gabouh / Sublime Text 3 Build 3103 License Key - CRACK
Created June 27, 2016 17:07
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@gabouh
gabouh / getting-started-&-gotchas.md
Last active June 30, 2016 08:21 — forked from pbojinov/getting-started.md
Getting Started with React Native Android
@gabouh
gabouh / media-queries.css
Created August 4, 2016 23:06 — forked from hemantajax/media-queries.css
Very useful media queries snippets
/* 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) {
@gabouh
gabouh / .htaccess
Created January 23, 2017 21:40 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/