Skip to content

Instantly share code, notes, and snippets.

View icaromh's full-sized avatar
🦉

Ícaro Heimig icaromh

🦉
View GitHub Profile
@icaromh
icaromh / sublime.txt
Created July 9, 2013 02:32
Instalar Sublime Linux
http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/

Sublime Text 2 Installation Guide: Ubuntu 13.04 and Elementary OS Luna

1. Install Sublime Text 2

Open terminal

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

2. Install Sublime Package Control

@icaromh
icaromh / cache-control
Created January 3, 2014 11:57
.htaccess para controlar o cache dos arquivos da aplicação. melhora significativamente Fonte : http://pastebin.com/eFihbb93 Original: Matheus Kramer
#Força a utilizar Cache-Control e Expires header
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Html
@icaromh
icaromh / config
Created July 24, 2014 02:28
Configuração do terminator para ter layout igual ao do MacOs X
[global_config]
title_hide_sizetext = True
title_transmit_bg_color = "#18c814"
[keybindings]
[profiles]
[[default]]
word_chars = "-A-Za-z0-9,./?%&#:_=+@~"
palette = "#000000:#f57900:#73d216:#d4c17f:#41c8f2:#ce5c00:#c17d11:#73d216:#262626:#edd400:#73d216:#ef2929:#00abff:#ba9f00:#e9b96e:#ad7fa8"
background_image = None
background_darkness = 0.82
@icaromh
icaromh / vagrant-boxes.sh
Last active August 29, 2015 14:07
Vagrant Halt before shutdown
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: something warm and fuzzy
# Required-Start: vboxdrv
# Required-Stop: vboxdrv
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts suspended vagrant boxes and suspends running vagrant boxes
# Description:
### END INIT INFO
var Table = React.createClass({
render: function render() {
var _self = this;
var thead = React.DOM.thead({},
React.DOM.tr({},
this.props.cols.map(function (col) {
return React.DOM.th({}, col);
})));
@icaromh
icaromh / app.js
Created January 21, 2015 19:15
React Dynamic Table
// Code goes here
angular.module('fasterAngular', []).
controller('mycontroller', ['$scope', function($scope){
$scope.framework = 'ReactJs';
$scope.data = {
cols: [],
rows: []
};
@icaromh
icaromh / tradução.md
Last active August 29, 2015 14:24
traduçao.md
layout permalink title tweet_title og_image_relative
post
/labs/reactjs-introduction-for-people-who-know-just-enough-jquery-to-get-by
React.js Introdução para pessoas que já sabem o suficiente de jQuery para sobreviver
Uma introdução à #React.js para pessoas que já sabem o suficiente de jQuery para sobreviver
/images/labs/jquery-style-vs-react-style.png

Tweet

@icaromh
icaromh / gvdata.js
Created August 5, 2015 23:33
Script em nodejs para navegar até o portal do aluno do SENACRS e buscar as informações financeiras :)
var timeInit = new Date();
var Nightmare = require('nightmare');
// Dados de acesso
var Aluno = {
usuario : 'seu_usuario',
senha : 'sua_senha',
unidade : '1' // número da unidade, ex.: 63
};
var Nightmare = require('nightmare');
var username = '';
var password = '';
new Nightmare()
.viewport(800, 600)
.goto('https://instagram.com/accounts/login/')
.wait()