(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#lang racket | |
(require racket/serialize) | |
(require racket/cmdline) | |
(require "./messages.rkt") | |
(define (rand-number pred ran) | |
(let loop () | |
(let ([r (random ran)]) | |
(if (pred r) (loop) r)))) |
#lang racket | |
(require net/http-client) | |
(require net/url) | |
(require json) | |
(require net/uri-codec) | |
(require racket/cmdline) | |
(define lg (make-logger 'currency-logger)) | |
(current-logger lg) |
<section data-background-transition='zoom' data-transition='concave' data-background='http://fdorg.qiniudn.com/galaxy-10996_1280.jpg' data-state='blackout'> | |
<h1>在云端的泡泡糖</h1> | |
<h4>slides.fdzh.org</h4> | |
<p>请按 空格 或点击 右下角方向键 继续演示...</p> | |
</section> | |
<section data-background-transition='zoom' data-transition='linear'> | |
<h2>如何使用?</h2> | |
<p>仅需 Fork 一份 Gist </p> | |
<a href='https://gist.github.com/tvvocold/30e2848f2ba2a294ab28'>https://gist.github.com/tvvocold/30e2848f2ba2a294ab28</a></p> |
#!/usr/bin/ruby | |
# encoding: US-ASCII | |
# Convert a Markdown README to HTML with Github Flavored Markdown | |
# Github and Pygments styles are included in the output | |
# | |
# Requirements: json gem (`gem install json`) | |
# | |
# Input: STDIN or filename | |
# Output: STDOUT | |
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
import requests | |
from db import db | |
""" | |
The Douban Group API which not display on http://developers.douban.com/wiki/?title=api_v2 | |
Base url: https://api.douban.com/v2 | |
Group info: /group/:id |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
unzip3_gbk.py: Deal with zip files using encoding GB2312/GBK/GB18030 | |
""" | |
import os | |
# import sys | |
import argparse | |
import zipfile |
# LaTeX Files | |
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# Help menu | |
print_help() { | |
cat <<-HELP | |
Arguments: | |
--spec - --spec=stage1.spec (default) | |
--config - --config=/etc/catalyst.conf (default) |