This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| /Users/samuelsimoes/code/*/log/*.log { | |
| missingok | |
| rotate 0 | |
| size 3M | |
| create | |
| } |
| # Add the following 'help' target to your Makefile | |
| # And add help text after each target name starting with '\#\#' | |
| help: ## Show this help. | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
| # Everything below is an example | |
| target00: ## This message will show up when typing 'make help' | |
| @echo does nothing |
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str) { | |
| return str.toLowerCase(); |
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
| .fileContainer { | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .fileContainer [type=file] { | |
| cursor: inherit; | |
| display: block; | |
| font-size: 999px; | |
| filter: alpha(opacity=0); |
| <html> | |
| <head> | |
| <title>Demo</title> | |
| </head> | |
| <body> | |
| <h1>PHP Mongo Test</h1> | |
| <?php | |
| try { | |
| $connect = $_ENV["MONGOLAB_URI"]; | |
| $m = new Mongo($connect); |
| PS1='\n[\t \u] \[\033[1;33m\]\w\a\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")' | |
| PS1="$PS1 \[\033[1;32m\](\$(~/.rvm/bin/rvm-prompt))\[\033[0m\] \n\$ " |
| # You need to install these gems. | |
| # - smtp_tls | |
| # - pony | |
| post "/contact-us" do | |
| Pony.mail :to => '[email protected]', | |
| :from => "#{params[:email]}", | |
| :subject => "Contact SFT : #{params[:name]}", | |
| :body=> "#{params[:body]}, --- Contact Address #{params[:email]}", | |
| :via => :smtp, |