Skip to content

Instantly share code, notes, and snippets.

View iPotaje's full-sized avatar

Emilio G.C. iPotaje

  • iPotaje
  • Lanzarote
  • 12:00 (UTC +01:00)
View GitHub Profile
@iPotaje
iPotaje / SQL
Last active August 29, 2015 14:08
SQL Cheatsheet
table
-----------------
@iPotaje
iPotaje / cache.js
Last active August 29, 2015 14:10 — forked from bshamric/cache.js
var fs = require('fs');
//this is the path that QTNetwork classes uses for caching files for it's http client
//the path should be the one that has 16 folders labeled 0,1,2,3,...,F
exports.cachePath = '/path/to/phantomjs/cache/data/folder';
//this is the extension used for files in the cache path
exports.cacheExtension = "d";
//the resources that are to be saved
@iPotaje
iPotaje / .jshintrc.js
Last active August 29, 2015 14:14 — forked from connor/.jshintrc.js
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
@iPotaje
iPotaje / gist:ef6d086fa17b0736b6a2
Created November 24, 2015 18:40
gulpfile.js For angular, angular-route, browserify, watchify and babelify
var gulp = require('gulp');
var dest = {
preDirectory : 'pre',
directory : 'dist',
bundle : '/' + 'all.js'
};
var src = {
webserver : '.',
@iPotaje
iPotaje / gist:5611871
Created May 20, 2013 12:09
html5 template
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Template</title>
<link rel="stylesheet" href="style.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
</body>
@iPotaje
iPotaje / gist:5618650
Created May 21, 2013 09:44
Prueba de gist
Gist is getting block
@iPotaje
iPotaje / gist:5744254
Last active December 18, 2015 07:09
.htaccess skeleton
DirectoryIndex index.php
FallbackResource /slim/new/index.php
@iPotaje
iPotaje / gist:1fca82b3d508781d8059827f041dc0a2
Last active July 1, 2016 11:16 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
git clone --bare url .git
[git clone --bare https://github.com/planetoftheweb/angular2.git .git]
git config --bool core.bare false #switch the bare repo to a normal version of the repo
git reset --hard
@iPotaje
iPotaje / gist:583e22e58d01a2b719ca8729fed67860
Created November 10, 2016 13:00
Move PDFs to parent directory and delete empty folders
mv */*.pdf .
find . -type d -empty -delete