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 MyCustomHelper extends AppHelper { | |
public function sayMessage($name) { | |
$view = new View; | |
return $view->element('path/to/element', array('name' => $name)); | |
} | |
} |
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
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\] " |
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 perl | |
# Finds duplicate adjacent words. | |
use strict ; | |
my $DupCount = 0 ; | |
if (!@ARGV) { | |
print "usage: $0 <file> ...\n" ; |
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
# go to your repository | |
cd my_project | |
# check your existing remote | |
git remote -v | |
# origin [email protected]:my_project.git (fetch) | |
# origin [email protected]: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 |
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
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 .' |
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
[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 |
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
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 |
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
gem install mysql --platform=ruby -- --with-mysql-include=C:\xampplite\mysql\include --with-mysql-lib=C:\xampplite\mysql\lib\opt |
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
# 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\] " |
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
Padrino | |
bcrypt |