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;
View go-install-tools
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 |
View gist:2950980
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; |
View Javascript Array betterFilter.md
View react.md
Slides
Example Ice Cream List application
- A small application that is an example of using React + Redux
- I'll use this as an example during the presentation
Example Katello PR
- 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.
View vimrc
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 |
View .gvimrc.before
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 |
View gist:296fb90d076f259a5b0a
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" | |
) |
View howto
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 |
View gist:9f68b1818dca886e9ae8
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