Extracted by SnappySnippet.
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
# Gemfile | |
ruby '2.1.1' | |
gem 'nokogiri' | |
gem 'pry' | |
# scrapey.rb | |
require 'rubygems' | |
require "net/http" |
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
# Live cells with: | |
# < 2 living neighbors dies to underpop | |
# > 3 living neighbors dies to overpop | |
# Otherwise, lives! | |
# | |
# Dead cells with exactly 3 living neighbors is born | |
# | |
# . 0 . | |
# . 0 . | |
# . 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
div style="width:500px;height:500px;border:1px solid black;" | |
button click="browse" | |
| Browse | |
button click="upload" | |
| Upload | |
file-upload url="/files" onfile="onfile" | |
= yield |
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/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs mysql | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: unicorn initscript | |
# Description: Unicorn is an HTTP server for Rack application | |
### END INIT INFO |
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 'date' | |
require 'yaml' | |
data = [] | |
File.open "albert.rec" do |f| | |
f.each_slice(2) do |slice| | |
# key = items.delete_at(0).downcase | |
reads = slice.map do |line| | |
items = line.chomp.split(/\s+/) |
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 'yaml' | |
require 'csv' | |
class PlotLaser < Processing::App | |
def setup | |
@data = YAML.load File.open("albert.yml") | |
@smooth = false | |
no_smooth | |
@frame_index = 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
Show hidden characters
{ | |
"presets": [ | |
"es2015", | |
"es2016", | |
"es2017" | |
], | |
"plugins": [] | |
} |
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
alias la='ls -la' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gb='git branch' | |
alias gco='git checkout' | |
alias gs='git status -sb' | |
alias gc='git commit -m' | |
alias gaa='git add -A' |
OlderNewer