- https://jamesthornton.com#EXIWlRrkjKE
- https://twitter.com/Rangers/status/1641554510605611011
- https://twitter.com/astros/status/1641996751618940936
- https://www.youtube.com/watch?v=S7c3lzpDkvQ#7SlILk2WMTI
- https://gist.github.com/espeed/dd3026536ec3d38afea1072941670f52#3ch6eXkQWU8-C5TDc46E1G4-trIjpVH8h88-UcW056B9jeQ-LvG_M_fAkXU
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Done under Visual Studio 2010 using the excelent Python Tools for Visual Studio | |
# http://pytools.codeplex.com/ | |
# | |
# Article on ideas vs execution at: http://blog.databigbang.com/ideas-and-execution-magic-chart/ | |
import urllib2 | |
import json |
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
;; image at: http://take.ms/VaXll | |
(def g {:a {:white :a :black :b} | |
:b {:white :d :black :c} | |
:c {:white :g :black :d} | |
:d {:white :c :black :e} | |
:e {:white :f :black :f} | |
:f {:white :b :black :g} | |
:g {:white :e :black :a}}) |
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 sorted-key-list | |
[& maps] | |
(or | |
(->> | |
(mapcat keys maps) | |
set | |
(map str) | |
sort | |
(clojure.string/join ", ") | |
not-empty) |
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
;; Clojure library clj-yaml deserializes into arbitrary Java classes | |
user=> (require '[clj-yaml.core :as yaml]) | |
nil | |
user=> (yaml/parse-string "!!java.io.File") | |
#<File > |
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
;; (macroexpand-1 '(go (+ 1 1)) yields ... | |
(clojure.core/let | |
[c__2247__auto__ | |
(clojure.core.async/chan 1) | |
captured-bindings__2248__auto__ | |
(clojure.lang.Var/getThreadBindingFrame)] | |
(clojure.core.async.impl.dispatch/run | |
(clojure.core/fn | |
[] |
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
/* | |
* call-seq: | |
* Rugged::Repository.new(name, options = {}) -> repository | |
* | |
* Open a Git repository with the given +name+ and return a +Repository+ object | |
* representing it. | |
* | |
*/ | |
static VALUE rb_git_repo_new(int argc, VALUE *argv, VALUE klass) | |
{ |
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 | |
# GetChromeRemoteCode.sh | |
# Run with CRON like | |
# * * * * * ~/chrome_remote.sh | |
# Required: | |
# google-chrome + chrome remote desktop | |
# tesseract-ocr |
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
#!usr/bin/python3 | |
# -*- coding: UTF-8 -*- | |
"""This module is a sample of the OAuth2 authentication by Python3""" | |
__version__ = "0.1.0" | |
__author__ = "shin (shin.hateblo.jp)" | |
__copyright__ = "(C) 2012 shin" | |
__email__ = "s2pch.luck@gmail.com" | |
__license__ = "Apache License 2.0" |
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
0 48 | |
0000 6 | |
0l 1 | |
0xdc00 13 | |
1 69 | |
10 11 | |
100 3 | |
1001 1 | |
100154 1 | |
1004 1 |
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
;; Copyright (c) James Reeves. All rights reserved. | |
;; The use and distribution terms for this software are covered by the Eclipse | |
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which | |
;; can be found in the file epl-v10.html at the root of this distribution. By | |
;; using this software in any fashion, you are agreeing to be bound by the | |
;; terms of this license. You must not remove this notice, or any other, from | |
;; this software. | |
(ns compojure.server.jetty | |
"Clojure interface to start an embedded Jetty server." |