Skip to content

Instantly share code, notes, and snippets.

View weslley39's full-sized avatar
🤘
Awesome

Weslley Neri weslley39

🤘
Awesome
View GitHub Profile
var dataInicial = new DateTime(ano, mes, 1);
var dataFinal = new DateTime(ano, mes, 1).AddMonths(1).AddDays(-1); //HACK dos months não apagar
@weslley39
weslley39 / Center_Div_Css
Created July 28, 2014 18:15
Centering any div
width: 50%;
margin: 0 auto;
sudo apt-get install ruby1.9.1-dev
gem install jekyll
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
. ~/z.sh
# If not running interactively, don't do anything
case $- in
*i*) ;;
@weslley39
weslley39 / start_karma_vagrant
Created September 26, 2014 14:44
start_karma_vagrant
Xvfb :10 -screen 0 1366x768x24 -ac &;export DISPLAY=:10;karma start name_of_file
@weslley39
weslley39 / Sublime_Text_Shortcuts
Last active April 7, 2016 02:11
Sublime_Text_Shortcuts
Windows
{ "keys": ["ctrl+shift+i"], "command": "reindent" , "args": {"single_line": false}},
{ "keys": ["ctrl+shift+s"], "command": "save_all" },
{ "keys": ["ctrl+shift+w"], "command": "close_all" }
Mac
[
{ "keys": ["command+shift+i"], "command": "reindent" , "args": {"single_line": false}},
{ "keys": ["command+shift+s"], "command": "save_all" },
{ "keys": ["command+shift+w"], "command": "close_all" }
@weslley39
weslley39 / Sublime_Text_Packages
Last active August 29, 2015 14:07
Sublime_Text_Packages
{
"in_process_packages":
[
],
"installed_packages":
[
"Better CoffeeScript",
"BracketHighlighter",
"Browser Refresh",
"DocBlockr",
@weslley39
weslley39 / remove_special_characters_javascript
Created October 9, 2014 15:15
remove_special_characters_javascript
.replace(/[^\w\s]/gi, '');
cd
mkdir bin
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
cd $HOME // this will get you back to home directory
vim .bash_profile or .bashrc // this will open your .bash_profile file
export PATH=$PATH:~/bin
:wq // saves and close file
LAlt & F1::
SetTitleMatchMode, 2
IfWinExist Sublime Text
WinActivate
return
LAlt & F2::
IfWinExist ahk_class VirtualConsoleClass
WinActivate
return