Array.prototype.betterFilter = function(expression) {
var res = [];
for(var idx=0; idx<this.length; idx++){
var currentItem = this[idx];
if(expression(currentItem)){
res.push(currentItem);
}
}
return res;
This file contains 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
# Install all the Go tools and godep tool | |
# Location of gobin is based on installation by OS X Homebrew | |
sudo -u admin GOPATH=/tmp GOBIN=/usr/local/opt/go/bin go get -u golang.org/x/tools/cmd/... | |
sudo -u admin GOPATH=/tmp GOBIN=/usr/local/opt/go/bin go get -u github.com/tools/godep |
This file contains 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
{$mode objfpc}{$M+} | |
program test; | |
type | |
TMyClass = class | |
// Must be with RTTI view | |
procedure SayHi; | |
end; | |
procedure TMyClass.SayHi; |
- A small application that is an example of using React + Redux
- I'll use this as an example during the presentation
- I opened up a PR to create a packages UI for devs to see the full diff as I walkthrough the steps to create this.
This file contains 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
fu! GenerateUUID() | |
python << EOF | |
import uuid | |
import vim | |
# output a uuid to the vim variable for insertion below | |
vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4())) | |
EOF |
This file contains 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
" ----------------------------------------------------------------------------- | |
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git) | |
" Lars Smit larssmit@me.com | |
" ----------------------------------------------------------------------------- | |
" ----------------------------------------------------------------------------- | |
" Basics | |
" ----------------------------------------------------------------------------- | |
set encoding=utf8 |
This file contains 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"github.com/milosgajdos83/tenus" | |
) |
This file contains 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$ pg_ctl -D /usr/local/var/postgres start ## init postgres | |
bash$ psql -d postgres ## connect to postgres | |
psql# create database logger; -- create a database named "logger" | |
psql# begin; -- start a transaction | |
psql# \i log.sql -- load database | |
psql# commit; -- commit the transaction | |
bash$ go run log.go ## run driver program |
This file contains 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"github.com/milosgajdos83/tenus" | |
) |
OlderNewer