Modify postman to use a versioned JSON database as a backend. We can then share our postman configs by simply pushing to 'username.postman' database and grab new postman configurations by implementing a JSON database search.
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
| [5, ["1 x 5"]] | |
| [7, ["1 x 7", "5 x 1 + 1 x 2"]] | |
| [10, ["1 x 10", "2 x 5"]] | |
| [13, ["1 x 13", "5 x 2 + 1 x 3", "10 x 1 + 1 x 3"]] | |
| [15, ["1 x 15", "3 x 5", "10 x 1 + 1 x 5"]] | |
| [18, ["1 x 18", "5 x 3 + 1 x 3", "10 x 1 + 1 x 8"]] | |
| [20, ["1 x 20", "4 x 5", "10 x 2"]] | |
| [25, ["1 x 25", "5 x 5", "10 x 2 + 1 x 5"]] |
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
| licenses = [ 20,5,5,1,1,10,1,10,1,1,1,1,1,1,1].sort.reverse | |
| # simulates a sorted SQL select operation on the license table. | |
| def licenses.pop_eq_to_or_less_than(i) | |
| idx = 0 | |
| to_slice = -1 | |
| for x in self | |
| if x <= i | |
| to_slice = idx | |
| break |
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
| import akka.actor._ | |
| import scala.tools.jline._ | |
| import scala.tools.jline.console._ | |
| import scala.tools.jline.console.completer._ | |
| class Console(actor:ActorRef) extends Actor { | |
| val consoleReader = new ConsoleReader() | |
| consoleReader.addCompleter(new StringsCompleter("quit")) // tab completion |
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
| PS1_PATH="\[\e[0;32m\]\W\[\e[0m\]" | |
| PS1_USER="\[\e[0;34m\]\u\[\e[0m\]" | |
| PS1_PROMPT="\[\033[1;33m\]->\[\033[0m\]" | |
| PS1="$PS1_PATH $PS1_USER $PS1_PROMPT " | |
| # aliases | |
| alias ls='gls -X -G -F -t --color=auto --group-directories-first' |
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
| Vagrant::Config::Top.class_eval do | |
| def hd(name,size,port) | |
| self.vm.customize [ "createhd", "--filename","#{name}.vmdk", "--size", size.to_s, "--format", "vmdk" ] | |
| self.vm.customize ["storageattach", :id, "--storagectl", "SATA Controller", "--port", port.to_s, "--device", "0", "--type", "hdd", "--medium", "#{name}.vmdk"] | |
| end | |
| end |
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
| def show_tableview_menu(b) | |
| b.list_view do |x| | |
| x.title = "Example iOS Application" | |
| x.button "SameGame" do |nav| | |
| show_samegame(nav) | |
| end | |
| x.button "Hello World" do |nav| | |
| show_hello(nav) | |
| end | |
| x.button "Global IP" do |nav| |
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
| def show_tableview_menu(b) | |
| b.list_view do |x| | |
| x.title = "X" | |
| x.button "SameGame" do |nav| | |
| show_samegame(nav) | |
| end | |
| x.button "Hello World" do |nav| | |
| show_hello(nav) | |
| end | |
| x.button "Global IP" do |nav| |
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
| extend = (object, properties) -> | |
| for key, val of properties | |
| object[key] = val | |
| object | |
| merge = (options, overrides) -> | |
| extend (extend {}, options), overrides | |
| class Model | |
| field: (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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: { | |
| name: 'test', | |
| version: '0.0.1' | |
| }}); | |
| var generateFile = function() { | |
| var tmpl = grunt.file.read("template"); | |
| console.log(grunt.template.process(tmpl, { data: { taskName: grunt.task.current.name } } )) |