Skip to content

Instantly share code, notes, and snippets.

test gist
test gist
test gist
test
- (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
if (!documentsDirectory) {
NSLog(@"Documents directory not found!");
return NO;
}
NSString *appFile = [documentsDirectory stringByAppendingPathComponent:fileName];
return ([data writeToFile:appFile atomically:YES]);
}
-module(test).
-export([list_range/4, split_range/1]).
split_range(Range) ->
Each = round(Range / 8),
list_range([], 0, Each, Range).
list_range(Range, Start, Each, Max) ->
End = Start + Each,
$>ruby view_pack.rb pack-f1ad8eda574a36ef06e73182cf06fd6e663c6346.idx
["009c5154fa7b3221b5c9fa9291fcea07ea8b9a0a",
"08392dccdf7c777aaf1696e15097a1a9d428b8f3",
"08daca78a6f69ca2ef1ac78ba6b0c50ff9c3c938",
"09b3e450e8958d3f24965d7258aecc9fa7f8dd54",
"0b7646b0d4d62904328a47059159872e8c66d626",
"0b8e21cb52217088920c549e5632c939aed21e89",
"0edf99eb35f35fde0a15548069b7df258f907035",
"103d0b23bc3195205f8dbdf79833775bd43118e7",
"112cf9083b8410ecb3b1ffe6a4e00e029c0949e9",
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS 180-1
* Version 2.2-alpha Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/*
@schacon
schacon / FUGPL.txt
Created September 25, 2008 18:49
the anti-gpl license
The FUGPL License
===================
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software with only one restriction. No part of
it may be included in software projects that are solely distributed under
strong copyleft restricted licenses. This license is *NOT* GPL compatible,
and that is it's only restriction.
From bf30340d325add26ba2c02e9770be084c3459e91 Mon Sep 17 00:00:00 2001
From: Scott Chacon <schacon@gmail.com>
Date: Thu, 9 Oct 2008 10:48:17 -0700
Subject: [PATCH] wording clarification for what the subdomain is for campfire
---
docs/campfire | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/docs/campfire b/docs/campfire