View ebanx.html
<html>
<body>
<form onsubmit="event.preventDefault(); createToken()">
number: <input id="card-number" value="4111111111111111"><br>
name: <input id="card-name" value="John Doe"><br>
due date: <input id="card-due-date" value="1/2020"><br>
cvv: <input id="card-cvv" value="123"><br>
<input type="submit" value="create token">
</form>
View holder.scad
length = 66.5;
width = 18.75;
height = 13;
thickness = 1;
module spring(radius, width, height, thickness, $fn = 12) {
for (sx = [1, -1]) {
scale([sx, 1, 1]) {
cube([(width / 2 - radius) / 2 + thickness, thickness, height + thickness]);
translate([width / 2 - radius + thickness, 0, 0]) {
View 18650-frame.scad
rows = 10;
cols = 10;
height = 5;
frame_thickness = 2;
cell_radius = 9.5;
wire_radius = 1.5;
module frame() {
difference() {
hull() {
View update_weight.rb
User.where(weight_unit: "lbs").where.not(weight: nil).find_each { |u| u.athlete_profile.update!(precise_weight: (u.weight * 0.45359237).round(1)) }
View init.lua
DEVICE_ID="pmsensor-" .. string.format("%02X", node.chipid())
BOOT_WAIT = 3
DWEET_INTERVAL = 60
LED_PIN = 4
pm25 = nil
pm10 = nil
function led(state)
View import_attachments.rb
require "open-uri"
require "fileutils"
open("attachments.csv").each do |line|
path, url = line.split(",", 2)
puts path
FileUtils.mkdir_p(File.dirname(path))
open(path, "w") { |f| f.write(open(url).read) } unless File.exist?(path)
end
View export_attachments.rb
Attachment.find_each { |a| f = a.file; f.fog_authenticated_url_expiration = 24.hours.to_i; puts "#{f.path},#{f.url}" }
View userdata.sh
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# reduce the server load and free as much memory as we can
service unicorn stop
service nginx stop
service postgresql stop
# remove the old postgresql
View Deutsch.txt
aleja|die Allee, -n|
starówka|die Altstadt, die Altstädte<br>|
zagranica|das Ausland|
wieś|das Dorf, die Dörfer|
okolica (G…)|die Gegend, -en|
duże miasto|die Großstadt, die Großstädte|
stolica|die Hauptstadt, die Hauptstädte|
numer domu|die Hausnummer, -n|
centrum miasta|die Innenstadt, die Innenstädte|
małe miasto|die Kleinstadt, die Kleinstädte|
View create_athlete_profiles.rb
User.where("NOT EXISTS (SELECT 1 FROM athlete_profiles WHERE athlete_profiles.fl_uid = users.fl_uid)").find_each { |user| Athlete::ProfileBuilder.new(user_id: user.id).call }