I hereby claim:
- I am pads on github.
- I am pads (https://keybase.io/pads) on keybase.
- I have a public key ASAMRTsoYKHrT860S21K4fwb52UDFu3BD2JT_imEx_mYgQo
To claim this, I am signing this object:
// https://github.com/CodeYourFuture/JavaScript-Core-2-Homework/blob/master/Week-1/InClass/C-more-complex-objects/exercise-3.js | |
/* | |
Given the same "house" object again | |
Write the code for the functions as per the description above them | |
*/ | |
let kinningParkHouse = { | |
address: "1 Kinning Park", | |
price: 180000, | |
currentOwner: { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: update_shrinkwrap.sh <package-name@version|git-repo#version>" | |
exit 1; | |
fi | |
npm cache clean | |
npm prune | |
rm -rf node_modules |
$tooltipProvider.setTriggers({ | |
// other trigger config | |
'customOpen':'customClose' | |
}); |
require 'csv' | |
# Iterate through each CSV file in the current folder | |
Dir.glob('*.csv') do |csv_filename| | |
# Create and open a new file to store the modified rows | |
csv_output_file = CSV.open("modified-#{csv_filename}", 'wb') | |
# Open the current file by filename | |
CSV.open(csv_filename, 'r') do |csv_contents| | |
# Iterate through each row in the CSV file | |
csv_contents.each do |row| |
require 'csv' | |
csv_contents = CSV.read('Data.csv') | |
# Shift 3 rows of headers to get to the data | |
csv_contents.shift | |
csv_contents.shift | |
csv_contents.shift | |
set1 = [] | |
set2 = [] |
# Ember data does not dirty the parent model if any of it's children change so | |
# no rollback can occur for a child. This fixes this by resetting a child's | |
# data to the internal data tracked by the parent model. | |
DS.Model.reopen | |
rollbackBelongsTo: (relationshipName) -> | |
thisName = @constructor.typeKey | |
relationshipInstance = @get relationshipName | |
# Rollback any attributes that were changed in the relationship | |
relationshipInstance.rollback() |
App.MyModel.eachRelationship (name, relationship) -> | |
relationshipInstance = modelInstance.get name | |
if relationshipInstance | |
if relationship.kind is 'belongsTo' | |
relationshipInstance.rollback() | |
else if relationshipInstance.content and relationship.kind is 'hasMany' | |
relationshipInstance.content.forEach (record) -> | |
record.rollback() |
puts gets.to_i.to_s(2) | |
# | |
# Best solution found: | |
# | |
#puts"%b"%gets |
var hands = [ | |
'rock', | |
'paper', | |
'scissors', | |
'water', | |
'dynamite' | |
]; | |
var opponents = [] |