Install cask
that extends the brew
command :
brew install phinze/cask/brew-cask
Install calibre
using cask
:
brew cask install calibre
define(function(){ | |
var instance = null; | |
function MySingleton(){ | |
if(instance !== null){ | |
throw new Error("Cannot instantiate more than one MySingleton, use MySingleton.getInstance()"); | |
} | |
this.initialize(); | |
} |
/* | |
File: Reachability.h | |
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
Version: 2.2 - ARCified | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
("Apple") in consideration of your agreement to the following terms, and your | |
use, installation, modification or redistribution of this Apple software |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.layout.HBox; | |
import javafx.scene.paint.Color; | |
import javafx.scene.shape.Circle; | |
import javafx.stage.Popup; | |
import javafx.stage.Stage; |
// | |
// RKRequest+CacheControl.h | |
// | |
// Created by Angel on 8/10/12. | |
// Copyright (c) 2012 Xaton. All rights reserved. | |
// | |
#import "RKRequest.h" |
static NSString *cacheDatabaseName = @"ApplicationCache.db"; | |
static NSString *cacheGroupTable = @"CacheGroups"; | |
static NSString *cacheGroupTableManifestURLColums = @"manifestURL"; | |
static NSString *cacheTable = @"Caches"; | |
static NSString *cacheTableCacheGroupId = @"cacheGroup"; | |
/** | |
Clears the cached resources associated to a cache group. | |
@param manifestURLs An array of `NSString` containing the URLs of the cache manifests for which you want to clear the resources. |
(function(global) { | |
global.Functor = function(conf) { | |
Functor.types[conf.key] = { | |
obj: conf.obj, | |
fmap: conf.fmap | |
}; | |
}; | |
Functor.types = {}; |
(ns bowling_kata.core | |
(:use midje.sweet)) | |
(defn strike [x & xs] | |
(when (= x 10) | |
[[10 (first xs) (second xs)] xs])) | |
(defn spare [x y & xs] | |
(when (= 10 (+ x y)) | |
[[x y (first xs)] xs])) |
platforms/ | |
plugins/ |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# 分别统计中文和英文的字数,不包括标点符号。 | |
# Author: Pan Junyong from zopen.cn, panjy at zopen dot cn | |
import re | |
import sys | |
from types import StringType | |
import operator | |
import urllib2 | |
Install cask
that extends the brew
command :
brew install phinze/cask/brew-cask
Install calibre
using cask
:
brew cask install calibre