This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Get the date command | |
#DATE_CMD_LOC=`which date` | |
DATE_CMD_LOC=/bin/date | |
#Build the date command strings | |
START_DATE_CMD="$DATE_CMD_LOC -v+$1d +%Y-%m-%d\ 00:00:01\ -0500" | |
END_DATE_CMD="$DATE_CMD_LOC -v+$1d +%Y-%m-%d\ 23:59:59\ -0500" | |
#echo $START_DATE_CMD | |
#echo $END_DATE_CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by libimobiledevice configure 1.0.3, which was | |
generated by GNU Autoconf 2.65. Invocation command line was | |
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libimobiledevice/1.0.3 --without-swig | |
## --------- ## | |
## Platform. ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
In computer science, algorithmic complexity is represented by something called | |
Big-Oh notation. Writing O(1) means a function will take the same amount of | |
time no matter how large the input is, ie: it is constant. O(n) means it will | |
take linear time, for example if you double the amount of input, the time taken | |
to perform that function will also double. Other common complexities are O(n^2), | |
O(log(n)), and O(n log(n)). Note, in most cases the logarithm is log base 2. | |
The following functions basically split a list of numbers in the following way: | |
{0, 1, 2, 3, 4, 5, 6, 7} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
using namespace std; | |
// So here I'll define a struct that will go in the linked list | |
typedef struct person{ | |
string name; | |
int age; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
int addDigitsHex(int num); | |
void recursiveFizzBuzz(int start, int end); | |
int main (int argc, char const *argv[]) { | |
recursiveFizzBuzz(1, 100); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface JCITree : NSObject { | |
@private | |
id value; | |
NSMutableArray *leaves; | |
JCITree *parent; | |
} | |
@property (retain) id value; | |
@property (retain, readonly) NSMutableArray *leaves; | |
@property (assign, readonly) JCITree *parent; | |
-(void)setValue:(id)aValue atIndex:(NSInteger)index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSString+Cons.h | |
// NSStringCons | |
// | |
// Created by Will Ross on 8/12/11. | |
// Copyright (c) 2011 Naval Research Lab. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <time.h> | |
#include <stdio.h> | |
/* | |
* Require C99 | |
*/ | |
#if __STDC_VERSION__ < 199901L | |
#error C99 Required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This breaks a number of rules, and probably won't work with systems with non-32bit ints | |
Minimal form (180 chars): | |
main(){int n,*s,i=0,j,t;scanf("%d",&n);s=malloc(n);while(i<n)scanf("%d",s+i++);while(--i)for(j=0;j<i;)if(s[j]>s[++j]){t=s[--j];s[j]=s[++j];s[j]=t;}while(i<n)printf("%d ",s[i++]);} | |
Standard(ish) form: | |
*/ | |
main(){ | |
int n,*s,i=0,j,t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnsiColor < Formula | |
url 'http://ansi-color.googlecode.com/files/ansi-color-0.6.tar.gz' | |
version '0.6' | |
homepage 'http://code.google.com/p/ansi-color/' | |
md5 '7f55561eb9c88bb56f51a86f12bff75c' | |
def install | |
# This package is a bit special, and probably requires manual staging/installation | |
end | |
end |
OlderNewer