I hereby claim:
- I am tank-bohr on github.
- I am tank_bohr (https://keybase.io/tank_bohr) on keybase.
- I have a public key ASAirY6O8PEhXCjs-WzsxoM3H-shEJL_aimIC4LTwSjHawo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
-module(systemd). | |
% This is what you need to adopt systemd in erlang | |
% | |
% Do whatever you want license. If you want, you can take this code under terms of MIT license. | |
-export([ready/0, reloading/0, stopping/0, watchdog/0]). | |
-export([start_link/0]). | |
-export([init/1, handle_info/2, terminate/2]). |
require 'pp' | |
require 'socket' | |
puts "My pid is [#{Process.pid}]" | |
socket = Socket.new(:INET, :STREAM) | |
socket.setsockopt(:SOCKET, :REUSEADDR, true) | |
sockaddr = Socket.pack_sockaddr_in(2200, '127.0.0.1') | |
socket.bind(sockaddr) | |
socket.listen(_backlog = 3) |
import spark.Spark.* | |
import java.sql.Connection | |
import java.sql.DriverManager | |
import java.sql.ResultSet | |
fun initDb(connection: Connection) { | |
connection.createStatement().execute(""" | |
CREATE TABLE adjectives( | |
id INT AUTO_INCREMENT PRIMARY KEY, |
if [ -z "$1" ]; then | |
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4 | |
else | |
shot_path="$*" | |
fi | |
ffmpeg="ffmpeg" | |
n6_frame="n6-background.png" | |
trap ctrl_c INT |
class Synchronizer | |
module ClassMethods | |
attr_reader :m, :cv | |
def init! | |
@m = Mutex.new | |
@cv = ConditionVariable.new | |
end | |
def wait |
#!/usr/bin/env ruby | |
require 'pp' | |
require 'continuation' | |
def map_tree(tree, &proc) | |
if tree.is_a? Array | |
tree.map { |node| map_tree(node, &proc) } | |
else | |
proc[tree] |
-module(cozy_lists). | |
-include_lib("eunit/include/eunit.hrl"). | |
-export ([ | |
even/1, | |
odd/1, | |
uniq/1, | |
find_index/2, | |
count/2, | |
all_sublists/1, |
%define rubyver_major 2 | |
%define rubyver_minor 1 | |
%define rubyver_patch 6 | |
%define rubyver %{rubyver_major}.%{rubyver_minor}.%{rubyver_patch} | |
%define ruby_archive ruby-%{rubyver} | |
%define prefix /opt/%{ruby_archive} | |
Summary: An interpreter of object-oriented scripting language | |
Name: ruby | |
Version: %{rubyver} |