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
#!/bin/bash | |
[[ $2 = "" ]] && BRANCH_NAME="develop" || BRANCH_NAME="$1" | |
# Let the person running the script know what's going on. | |
echo "Pulling in latest changes for all upstream repositories in $pwd..." | |
echo $BRANCH_NAME; | |
# Find all folders and update it to the given branch latest revision | |
for d in */ ; do |
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
#!/bin/bash | |
color(){ | |
for c; do | |
printf '\e[48;5;%dm%03d' $c $c | |
done | |
printf '\e[0m \n' | |
} | |
IFS=$' \t\n' | |
color {0..15} |
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
using System; | |
using System.Collections; | |
namespace StackQueue | |
{ | |
public class Stack | |
{ | |
List <object> store = new List<object>(); | |
public void Push(object x) |
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
function View() { | |
this.searchButton = document.querySelector(".search-button") | |
this.tagSpace = document.querySelector("#tag-space") | |
this.map = null | |
this.lat = 51.5072 | |
this.lng = 0.1275 | |
this.zoom = 2 | |
this.address = null | |
} |
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
function View() { | |
this.searchButton = document.querySelector(".search-button") | |
this.tagSpace = document.querySelector("#tag-space") | |
this.map = null | |
this.lat = 51.5072 | |
this.lng = 0.1275 | |
this.zoom = 2 | |
this.address = null | |
} |
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
class Game < ActiveRecord::Base | |
has_many :game_objects | |
after_create :generate_players | |
after_create :generate_jewels | |
before_create :overwrite_num_players | |
validates_presence_of :size, :num_players, :name |
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
class EventProcessor | |
def initialize | |
end | |
def self.process_all(json_array) | |
json_array.each do |action_info| | |
new.process(action_info) | |
end | |
end |
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
# here's a simple example of driving your design using tests. | |
# by running this code and solving the failing tests one by one | |
# you should be able to finish this challenge easily. | |
# ask for help if you get stuck. | |
# consider all the questions (Q:) as you encounter them | |
# in this universe ... | |
# - people own pets | |
# - pets eat and walk |
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
var Client = function(x,y,z,j){ | |
this.name= x; | |
this.age= y; | |
this.quote= z; | |
this.showQuote = function() { | |
console.log(this.quote); | |
} | |
this.isFemale = j; | |
} |