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
maio:~ $ cat ~/Library/KeyBindings/DefaultKeyBinding.dict | |
{ | |
"~d" = "deleteWordForward:"; | |
"^w" = "deleteWordBackward:"; | |
"~f" = "moveWordForward:"; | |
"~b" = "moveWordBackward:"; | |
"^/" = "undo:"; | |
"^g" = { | |
"^g" = ("insertText:", "[email protected]"); | |
"^d" = ("insertText:", "[email protected]"); |
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
(ns kata.core-test | |
(:require [clojure.test :refer :all])) | |
;; Langton's Ant - http://en.wikipedia.org/wiki/Langton's_ant | |
;; | |
;; At a white square, turn 90° right, flip the color of the square, move forward one unit | |
;; At a black square, turn 90° left, flip the color of the square, move forward one unit | |
(def flip | |
{:black :white |
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
(defn deaccent [str] | |
"Remove accent from string" | |
;; http://www.matt-reid.co.uk/blog_post.php?id=69 | |
(let [normalized (java.text.Normalizer/normalize str java.text.Normalizer$Form/NFD)] | |
(clojure.string/replace normalized #"\p{InCombiningDiacriticalMarks}+" ""))) |
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
(ns fetaoin.core | |
(:require [irclj.core :as irc] | |
[clojure.data.json :as json])) | |
;; HTTP stuff | |
(defn fetch-json [url] | |
(json/read-str (slurp url))) | |
;; YouTube API | |
(def api-key "sekret") |
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/bash | |
# Real CPU Usage Chart | |
# BitBar plugin | |
# | |
# by Marian Schubert | |
# Based on work by Mat Ryer and Tyler Bunnell | |
# | |
# This script requires https://github.com/holman/spark | |
# |
Repository: https://github.com/maio/graphql-basics-workshop
const graphql = require('graphql');
const storage = require('../storage/storage.js');
const {
GraphQLSchema,
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.