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 Container | |
{ | |
protected $setings = array(); | |
public function set($abstract, $concrete = null) | |
{ | |
if ($concrete === null) { | |
$concrete = $abstract; |
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
" Tomorrow Night - Full Colour and 256 Colour | |
" http://chriskempson.com | |
" | |
" Hex colour conversion functions borrowed from the theme "Desert256"" | |
" Default GUI Colours | |
let s:foreground = "c5c8c6" | |
let s:background = "1d1f21" | |
let s:selection = "373b41" | |
let s:line = "282a2e" |
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
set nocompatible | |
colorscheme Tomorrow-Night | |
set number | |
"set lines=35 columns=150 | |
"let mapleader=" " | |
"map <leader>s :source ~/.vimrc<CR> |
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
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
PATH=$PATH:$HOME/bin |
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
# CPU freq is unreliable on some CPU ('Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz') since the CPU frequency is adaptive to system load. | |
my $spec = Util::System::getSystemSpec(); | |
print "OS: '$spec->{os}'\n"; | |
print "CPU: '$spec->{cpu_name}'\n"; | |
print "CPU count: $spec->{num_cpu}\n"; | |
print "CPU freq: $spec->{cpu_freq} GHz\n"; |