I hereby claim:
- I am namenu on github.
- I am namenu (https://keybase.io/namenu) on keybase.
- I have a public key whose fingerprint is 50BA 7CF6 A83C A23B 15B8 39CC EA0C 0066 44CC EE7C
To claim this, I am signing this object:
#!/bin/bash | |
REPO= | |
BRANCH=Release | |
DB=bom_$(date +%Y%m%d) | |
set -x | |
cd /htdocs/dev/repo/release | |
#!/bin/bash | |
MYSQL=`mysql --defaults-file=/etc/mysql/debian.cnf -e "SHOW GLOBAL STATUS LIKE 'Slave_running'" | grep 'Slave_running' | awk '{ print $2 }'` | |
res="$MYSQL" | |
if [ $res != "ON" ]; then | |
touch replication.broken | |
echo 'Replication was broken' | /usr/bin/mail -s 'echo 'Replication was broken' | /usr/bin/mail -s "[`hostname`] Replication was broken"' [email protected] | |
fi | |
#MYSQL=`mysql --defaults-file=/etc/mysql/debian.cnf -e "SHOW SLAVE STATUS\G"` |
# Install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# desktop applications | |
brew install --cask firefox | |
brew install --cask chrome | |
brew install --cask dropbox | |
brew install --cask notion | |
brew install --cask 1password |
from urllib.parse import urlencode | |
import json | |
import logging | |
import urllib.request as urlrequest | |
import re | |
import os | |
log = logging.getLogger() | |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
(defn divisible? [divisor number] | |
(zero? (mod number divisor))) | |
(defn fizzbuzz [n] | |
(case [(divisible? 3 n) (divisible? 5 n)] | |
[true false] "Fizz" | |
[false true] "Buzz" | |
[true true] "FizzBuzz" | |
n)) |
(defn recaman | |
([] | |
(recaman 1 1 #{1})) | |
([n prev visited] | |
(lazy-seq | |
(cons prev | |
(let [n (inc n) | |
next (let [lookup (- prev n)] | |
(if (and (pos? lookup) (nil? (visited lookup))) | |
lookup |
// Q. Reverse a linked list. | |
// What is linked list? | |
const cons = h => t => f => f(h)(t) | |
// What is boolean? | |
const T = a => b => a | |
const F = a => b => b | |
// What is integer? |
I hereby claim:
To claim this, I am signing this object:
(ns interval-tree | |
(:require [clojure.spec.alpha :as s])) | |
;; augmented 1-D interval tree | |
(defrecord ^:private Node [interval highest left right]) | |
(defn insert [{:keys [interval highest left right] :as tree} [vlow vhigh :as value]] | |
(if (nil? tree) | |
(Node. value vhigh nil nil) |