- HTML.js: http://nbubna.github.io/HTML/
- Bonzo: https://github.com/ded/bonzo
- Sizzle: http://sizzlejs.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class Annotations extends MY_Controller { | |
/** | |
* Class Constructor | |
* | |
* @return void | |
*/ | |
public function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Minify HTML output (HTML) | |
* | |
* How to use: | |
* | |
* Call function using ob_start(); | |
* | |
* if(extension_loaded('zlib') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2013-10-07 using generator-angular 0.4.0 | |
// | |
// OBS: | |
// Replace the string with informations | |
// '<%= yeomanConfig.assets.css %>' = Stylesheets folder | |
// '<%= yeomanConfig.assets.js %>' = Scripts folder | |
// '<%= yeomanConfig.assets.img %>' = Images folder | |
// '<%= yeomanConfig.assets.font %>' = Fonts folder | |
// | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// INTERFACE "X" | |
var X = { | |
share: function(clientEmail, email ){} | |
}; | |
// LIB "A" | |
var A = { | |
type: 'facebook' | |
}; | |
// LIB "B" | |
var B = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PrintByDivisors = { | |
opts: { | |
begin: 1, | |
end: 100, | |
numbers: [15, 3, 5], | |
outputs: ['SouDev', 'Sou', 'Dev'] | |
}, | |
extend: function(target, source) { | |
target = target || {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
// OBS: | |
// Replace the string with informations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example in http://codepen.io/willmendesneto/pen/Iguor | |
$.get('http://worldcup.sfg.io/matches', function(data){ | |
data.forEach(function(item){ | |
if (item.status === 'completed') { | |
console.log(item.home_team.country + ' ' + item.home_team.goals + ' x ' + item.away_team.country + ' ' + item.away_team.goals); | |
} | |
}); | |
}, 'json'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Config Github Settings | |
github_username = "fideloper" | |
github_repo = "Vaprobash" | |
github_branch = "1.0.1" | |
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}" | |
# Server Configuration |
Algumas informações para inserirmos algumas funções e aliases no ambiente CLI. Como utilizo o oh-my-zsh, carrego alguns plugins por padrão:
plugins=(git rails ruby frontend-search nvm rvm vagrant)
É sempre uma boa prática modularizar os arquivos. Para isto criaremos 2 arquivos:
.functions
: arquivo onde ficarão as funções;.aliases
: arquivo onde ficarão os atalhos/aliases;