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
| https://github.com/mattpat/node-schedule | |
| http://danielkummer.github.io/git-flow-cheatsheet/index.pt_BR.html | |
| http://www.nodelabs.org/ | |
| http://markgoodyear.com/2014/01/getting-started-with-gulp/ |
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
| #!/bin/sh | |
| echo "-----------------------------------------------" | |
| echo " Initial Configuration Ubuntu: By Mandado " | |
| echo "-----------------------------------------------" | |
| # System upgrade | |
| echo "Updating repositories and upgrading system" | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get dist-upgrade | |
| clear |
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
| #!/usr/bin/env ruby | |
| require 'mail' | |
| mysql_username = 'root' | |
| mysql_password = '123456' | |
| mysql_database = 'test' | |
| system("mysqldump --user=#{mysql_username} --password=#{mysql_password} #{mysql_database} > backup.sql") | |
| # Credit to : |
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 getThumbYoutube = function(link, type) { | |
| var _idVideo,_regExp = /(?:https?:\/{2})(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/; | |
| var urls = { | |
| "player": 'http://i1.ytimg.com/vi/{_videoid_}/0.jpg', | |
| "normal": 'http://i1.ytimg.com/vi/{_videoid_}/default.jpg', | |
| "medium": 'http://i1.ytimg.com/vi/{_videoid_}/mqdefault.jpg', | |
| "high": 'http://i1.ytimg.com/vi/{_videoid_}/hqdefault.jpg', | |
| "start": 'http://i1.ytimg.com/vi/{_videoid_}/1.jpg', | |
| "middle": 'http://i1.ytimg.com/vi/{_videoid_}/2.jpg', | |
| "end": 'http://i1.ytimg.com/vi/{_videoid_}/3.jpg', |
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
| # encoding: utf-8 | |
| # Be sure to restart your server when you modify this file. | |
| # Add new inflection rules using the following format | |
| # (all these examples are active by default): | |
| # ActiveSupport::Inflector.inflections do |inflect| | |
| # inflect.plural /^(ox)$/i, '\1en' | |
| # inflect.singular /^(ox)en/i, '\1' | |
| # inflect.irregular 'person', 'people' | |
| # inflect.uncountable %w( fish sheep ) |
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
| - @categorias.each_slice(3) do |arr| | |
| %ul.menu-categorias | |
| - arr.each do |c| | |
| %li | |
| = link_to c.nome.capitalize,produtos_page_path(c.slug) |
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
| Lista* removerEl(Lista* l,int el){ | |
| Lista* p = l; | |
| Lista* an; | |
| while(p != NULL && p->num != el){ | |
| an = p; | |
| p = p->prox; | |
| } |
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
| Lista* InterseccaoLista(Lista* l,Lista* l2){ | |
| Lista* p; | |
| Lista* k; | |
| Lista* l3; | |
| int num; | |
| for(p = l;p != NULL;p = p->prox){ | |
| num = p->num; | |
| for(k = l2;k != NULL;k = k->prox){ | |
| if(num == k->num){ | |
| l3 = insercao(l,k->num); |
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 | |
| class minhaClasse{ | |
| public static function meuMetodo(){ | |
| echo 'meu nome'; | |
| } | |
| } |