I hereby claim:
- I am tjgillies on github.
- I am hodlr (https://keybase.io/hodlr) on keybase.
- I have a public key whose fingerprint is 52B7 9D5C 5F5E 7793 19AD AE1B E9BB AE25 E03C 7F2C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require "./stal/*" | |
| require "kemal" | |
| class Notifier | |
| def initialize | |
| @chan = Channel(String).new | |
| end | |
| def notify(msg = "YOLO") |
| <?php | |
| if ($_POST['content']){ | |
| $content = $_POST['content']; | |
| $reply = $_POST['in-reply-to']; | |
| $summary = implode(' ', array_slice(explode(' ', $content), 0, 10)); | |
| $alphanum = preg_replace("/[^A-Za-z0-9 ]/", '', $summary); | |
| $words = split(" ", $alphanum); | |
| $filename = join("-", $words); | |
| $date = subStr(date("c"), 0, 19)."Z"; |
| Gist buffer |
| 6578886108406455950540441649997174145099311716667801264184137590768573755959484487537468422101454875426498562898294083720358276473503257649733542494523576432574228012126176439944643401386351100244488916040332680285023768948680702971836349487718761557044828196243834603510000314160972579685135443858431893374132333464100827258949980777404944655929585532017509465510650124861082720340242897978646325115874136214622310262210244687433997474138407215456048437369805661511187331455229743198896283933675921687344750777333247583344747222536493931372031646311617433165064356933588472710527069143058339054914594019616636712826420549364176217647799613793026729444018207383584475750624046527775244761135452299100768513053382657039715383184349534762631159353600251495894683234756164740909356278542032410576056839942189411751829240882435178318830872180099031996905543365316995503640504185746427385828695171790817767302374295033153683777383318971099578716289075828789131662140588153024111832724073667707971336917594035855039518113005089505 |
| Debugger entered--Lisp error: (void-function dotspacemacs/layers) | |
| (dotspacemacs/layers) | |
| (let (dotspacemacs-configuration-layer-path dotspacemacs-configuration-layers dotspacemacs-additional-packages dotspacemacs-excluded-packages dotspacemacs-install-packages (passed-tests 0) (total-tests 0)) (load dotspacemacs-filepath) (dotspacemacs/layers) (spacemacs//test-list (quote stringp) (quote dotspacemacs-configuration-layer-path) "is a string" "path") (spacemacs//test-list (quote file-directory-p) (quote dotspacemacs-configuration-layer-path) "exists in filesystem" "path") (setq dotspacemacs-configuration-layers (mapcar (function (lambda (l) (if (listp l) (car l) l))) dotspacemacs-configuration-layers)) (spacemacs//test-list (quote configuration-layer/get-layer-path) (quote dotspacemacs-configuration-layers) "can be found" "layer") (insert (format (concat "** RESULTS: " "[[file:%s::dotspacemacs/layers][dotspacemacs/layers]] " "passed %s out of %s tests\n") dotspacemacs-filepath passed-tests total-tests)) (equa |
| <html> | |
| <canvas id="canvas" width="500" height="500"> | |
| </canvas> | |
| </html> | |
| <script> | |
| var canvas = document.getElementById("canvas"); | |
| var ctx = canvas.getContext("2d"); | |
| var max = function() { |
| require "stringio" | |
| substr1 = encode_str [255, 0, 0, 1, "h"] | |
| substr2 = encode_str [0, 13, 24, 4, "ello"] | |
| str = StringIO.new(substr1 + substr2) | |
| read_directive(str) | |
| def encode_str(str_tuple) | |
| [128396, str_tuple].flatten.pack("UC4a*") | |
| end |
| Iaction = Struct.new(:value, :status) | |
| Reader = Struct.new(:filename) do | |
| def read | |
| Iaction.new File.read(filename), :ok | |
| rescue => e | |
| Iaction.new e, :err | |
| end | |
| end |
| 2.1.2 :001 > Person = Struct.new(:name, :age, :location) do | |
| 2.1.2 :002 > def timezone | |
| 2.1.2 :003?> "Person currently in whatever timezone contains #{location}" | |
| 2.1.2 :004?> end | |
| 2.1.2 :005?> end | |
| => Person | |
| 2.1.2 :006 > tyler = Person.new(:tyler, 32, :portland) | |
| => #<struct Person name=:tyler, age=32, location=:portland> | |
| 2.1.2 :007 > tyler.location | |
| => :portland |