Skip to content
View MyCustomHelper.php
<?php
class MyCustomHelper extends AppHelper {
public function sayMessage($name) {
$view = new View;
return $view->element('path/to/element', array('name' => $name));
}
}
View .bash_profile
PATH="/usr/local/bin:$PATH"
if [ -f `brew --prefix`/etc/bash_completion.d/git-prompt.sh ]; then source `brew --prefix`/etc/bash_completion.d/git-prompt.sh; fi # for Git completion
export PS1="\[\033[01;34m\]\$(rbenv version-name) \[\033[01;32m\]\w\[\033[01;35m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\$\[\033[00m\] "
View find_duplicate_adjacent_words.pl
#!/usr/bin/env perl
# Finds duplicate adjacent words.
use strict ;
my $DupCount = 0 ;
if (!@ARGV) {
print "usage: $0 <file> ...\n" ;
View gist:2894205
# go to your repository
cd my_project
# check your existing remote
git remote -v
# origin git@mydomain.tld:my_project.git (fetch)
# origin git@mydomain.tld:my_project.git (push)
# Add a new remote, a github.com private repository for example
# the --mirror flag is what's different from a simple new remote
View devise.id.yml
id:
errors:
messages:
not_found: "tidak ditemukan"
already_confirmed: "sudah di konfirmasi"
not_locked: "tidak dikunci"
devise:
failure:
unauthenticated: 'Anda harus mendaftar atau sign in sebelum melanjutkan .'
View .gitconfig
[user]
name = MY_NAME
email = MY_EMAIL_ADDRESS
[git-tmbundle]
gitnub-path = /Applications/GitNub.app
gitx-path = /Applications/GitX.app
show-diff-check = yes
[github]
user = GITUB_USER
token = GITHUB_TOKEN
View .screenrc
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
shell -${SHELL}
screen -t shell1 0
screen -t shell2 1
View install-gem-mysql.bat
gem install mysql --platform=ruby -- --with-mysql-include=C:\xampplite\mysql\include --with-mysql-lib=C:\xampplite\mysql\lib\opt
View .bashrc
# http://collectiveidea.com/blog/archives/2011/08/02/command-line-feedback-from-rvm-and-git/
#
export PS1="\[\033[01;34m\]\$(~/.rvm/bin/rvm-prompt) \[\033[01;32m\]\w\[\033[00;33m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\n$\[\033[00m\] "
View padrino.dic
Padrino
bcrypt
Something went wrong with that request. Please try again.