mkdir tdd && cd tdd
bundle init
vim Gemfile# A sample Gemfile| $(function () { | |
| // Get Json ViewModel | |
| var json_response = @Html.Raw(Json.Encode(Model)); | |
| }); |
| private string Capitalise(string str) | |
| { | |
| if(String.IsNullOrEmpty(str)) | |
| return string.Empty; | |
| var firstLetter = string.Empty; | |
| if(str.Length > 0) | |
| firstLetter = Char.ToUpper(str[0]); | |
| return (str.Length == 1) ? firstLetter : firstLetter + str.Substring(1).ToLower(); |
| #Instalar ZSH: | |
| sudo apt-get update && sudo apt-get install zsh | |
| #Configurar oh-my-zsh: | |
| wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
| #Tornar ZSH terminal padrão | |
| chsh -s /bin/zsh | |
| #Reinicie o ubuntu. |
| sudo apt-get remove nodejs nodejs-dev npm | |
| sudo add-apt-repository ppa:richarvey/nodejs | |
| sudo apt-get update | |
| sudo apt-get install nodejs nodejs-dev npm | |
| nodejs -v #outputs v0.10.13 | |
| npm -v #outputs v1.3.3 |
| sudo apt-get build-dep python-psycopg2 | |
| pip install psycopg2 |
| rake db:migrate RAILS_ENV="production" | |
| rails s -e production |
| (since_became_a_zombie..Float::INFINITY).each { eat :brains, :tasks } |
| path_your_folder/* | |
| !path_your_folder/.gitkeep | |
mkdir tdd && cd tdd
bundle init
vim Gemfile# A sample Gemfile| private class Screen | |
| { | |
| Form mainForm = ... | |
| private void Screen_Loaded(object sender, ControlLoadedEventArgs e) | |
| { | |
| if(mainForm.InputControls != null && mainForm.InputControls.Contains("Id")) | |
| mainForm.InputControls["Id"].Editable = isEditable; | |
| } | |
| } |