- asdf
asdf
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
2.1.3 :008 > Event.pluck("measurements->>'diameter'") | |
(0.4ms) SELECT measurements->>'diameter' FROM "events" | |
=> ["2.3421"] |
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
$> tmi http://seesparkbox.com | |
Your image weight: | |
66.17 kB | |
Average image weight on the web: | |
1.2 MB | |
Thanks for keeping the web fast <3 | |
$> tmi http://apple.com |
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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
8869019b7f19 ubuntu:latest "find / -name *" 10 hours ago lonely_babbage | |
f39a343c7b99 ubuntu:latest "find / -name *" 11 hours ago focused_wozniak9 | |
12111ccc7eee ubuntu:latest "find / -name *" 11 hours ago backstabbing_archimedes |
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
require 'docker' #1.15 | |
require 'json' | |
require './samples' | |
class PLogger | |
def debug(*msg) | |
p "Debug: #{msg}" | |
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
1..10 |> map &( {&1, to_string(&1)} ) |
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
# My approach for the greed game was to take the values in a roll and sort them into seperate arrays. For example all the ones would be in an array, twos in an array, etc.. To keep these neat and tidy I will organize them into a hash. | |
# I could create a class called dice with two methods, roll and score: | |
#The roll method will randomly generate the numbers for the roll (I don't think this project included that but I'll add it anyways) and them store them into their arrays of similar numbers. | |
# The score method would be responsible for taking the sorted arrays and calculating the score then return the score. | |
class Dice | |
def initialize | |
@roll = {1 => [], 2 => [], 3 => [], 4 => [], 5 => [], 6 => []} | |
@points = 0 |
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
deployment: | |
production: | |
branch: master | |
commands: | |
- tar --exclude=".git" --exclude="node_modules" -czvf ~/wm.tar.gz . |
Curious how we run hackdays?
Proposal by: Rob Harr
I have been playing with some code that runs on a raspberry pi that can detect bluetooth signatures. I would love to add a fancy frontend that we can setup to run on a large display at the office.
Currently the code that I have that runs on the raspberry pi is designed in such a way that a number of raspberry pi's could be added to the system in a distributed way.
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
// amazing module | |
window.myModule = { | |
go: function() { return 1; } | |
} |