An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
/* Compile with: g++ -Wall –Werror -o shell shell.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> |
# These instructions work for OS X 10.6 with homebrew pre-installed. | |
brew install python --framework | |
brew install gfortran | |
# install other dependencies through pip: | |
pip install numpy | |
# the regular pip build for matplotlib is b0rken, and it can't find the built-in libraries for OSX | |
export LDFLAGS="-L/usr/X11/lib" |
diff -u -ruN pygame-1.9.1release/config_darwin.py pygame-1.9.1release-fixed/config_darwin.py | |
--- pygame-1.9.1release/config_darwin.py 2009-07-09 07:13:20.000000000 +0100 | |
+++ pygame-1.9.1release-fixed/config_darwin.py 2011-08-14 15:55:00.000000000 +0100 | |
@@ -1,60 +1,107 @@ | |
-"""Config on Darwin w/ frameworks""" | |
+"""Config on Unix""" | |
-import os, sys, string | |
+import os, sys | |
from glob import glob |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
This guide documents how we set up an easy workflow for using the IPython Notebook on our compute cluster managed with Sun Grid Engine (SGE).
Summary: We provide a script to the cluster users that runs qrsh
to schedule an ipython notebook
job using SSL and password protection.
socat Examples | |
=============== | |
* 注意 | |
- SYSTEM で : を使う時は必ずエスケープすること | |
* 相手に接続 | |
# telnet, netcat, socat それぞれの場合 | |
$ socat - TCP:127.0.0.1:8000 |
var image = document.getElementById('image'); | |
// Does the current browser support the API? | |
if (window.FaceDetector) { | |
var faceDetector = new FaceDetector(); | |
faceDetector.detect(image) | |
.then(faces => { | |
console.log(‘Faces found:’, faces.length); |
パターンとはその言語が抽象化できなかった敗北の歴史である。 しかしどんなに優れた言語であってもあらゆる繰り返しに勝てるわけではない。 人は必ずメタ繰り返しを欲するからだ。 そしてそれはRustも例外ではない。
ここでは、OOPでも知られているパターンよりも、Rustに特有のパターンを思いつく限りまとめてみた。名前は適当。