brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
;; Copyright (c) Alan Dipert. 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) | |
;; 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 alandipert.kahn | |
(:require [clojure.set :refer [difference union intersection]])) |
# App configuration for static site with auth. | |
# | |
# Originally from: https://gist.github.com/873098 | |
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
(in-package :cl-user) | |
(eval-when (:compile-toplevel :load-toplevel :execute) | |
(ql:quickload :alexandria) | |
(ql:quickload :fiveam)) | |
(defpackage :sort | |
(:use :cl) | |
(:import-from :alexandria :iota) | |
(:export :bubble-sort/naive :bubble-sort/not-enough :bubble-sort/knuth |
A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.
##Creating the DMG file #Disk Utility
#!/usr/bin/env python | |
import sqlite3 | |
class dbopen(object): | |
""" | |
Simple CM for sqlite3 databases. Commits everything at exit. | |
""" | |
def __init__(self, path): | |
self.path = path |
from sys import argv | |
import re | |
# open the file and get read to read data | |
file = open(argv[1], "r"); | |
p = re.compile("\d+"); | |
# initialize the graph | |
vertices, edges = map(int, p.findall(file.readline())) | |
graph = [[0]*vertices for _ in range(vertices)] |
import | |
asyncdispatch, asyncnet, htmlparser, xmltree, httpclient, strutils, | |
strtabs, streams, uri, sets | |
var visited = initSet[string]() | |
proc crawl(url: string, client: PAsyncHttpClient = newAsyncHttpClient()) {.async.} = | |
if url in visited: return # Already visited this URL. | |
echo("Crawling ", url) | |
visited.incl(url) |