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
#!/usr/bin/perl | |
=comment | |
various attempts at getting weighted random number distributions | |
first,second are dice-roll convergences | |
(if you roll multiple die multiple times the results will converge on a normal curve) | |
http://en.wikipedia.org/wiki/Central_limit_theorem | |
boxmuller gives a normal/gaussian distribution (classic bell curve) | |
rayleigh and weibull have more variables to play with |
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
######################### | |
#update 19 September 2015 | |
# Xcode 7 introduces a new file .xcscmblueprint | |
# following this advice | |
# http://stackoverflow.com/questions/31584297/xcode-7-ignore-xcscmblueprint-in-repository | |
*.xcscmblueprint | |
######################### | |
######################### |
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
// | |
// UIImage+Rotate.h | |
// | |
// Created by Foundry on 21/09/2013. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIImage (Rotate) |
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
:parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1="\[\033[0;31m\]\h:\w\n\u\$(parse_git_branch)>\[\033[0m\] " |
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
/* | |
typical usage (FYImageStore is a singleton) | |
[[FYImageStore instance] retrieveFullsizeImageFromPath:path | |
completion:^(UIImage* image){ | |
self.imageView.image = image | |
}]; | |
*/ | |
#import "FYImageURL.h" //URL-building utilities, omitted from this Gist. |
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
// | |
// WNLog.h | |
// testCrash | |
// | |
// Created by foundry on 08/06/2015. | |
// Copyright (c) 2015 foundry. All rights reserved. | |
// | |
#ifndef testCrash_WNLog_h | |
#define testCrash_WNLog_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
0 | 00:06:36:297 | $ +[WNMediaItem(Methods) urlKeyForSize:]166 | |
1 | 00:06:36:305 | $ -[WNGalleryCell prepareForReuse]200{{0, 0}, {154, 154}} | |
2 | 00:06:36:309 | $ -[WNGalleryCell prepareForReuse]201-[WNGalleryCell prepareForReuse] | |
3 | 00:06:36:312 | $ -[WNMediaItemFetcher cancelNotification:]207 | |
4 | 00:06:36:315 | $ +[WNMediaItem(Methods) photoSizeString:]183 | |
5 | 00:06:36:318 | $ -[WNMediaItemFetcher cancelNotification:]209 mediaItemID: 38240EFA-48F6-4C38-9B51-378A34F25179 size: WNPhotoSizeMedium | |
6 | 00:06:36:320 | $ +[WNMediaItem(Methods) photoSizeString:]183 | |
7 | 00:06:36:323 | $ -[WNMediaItemFetcher cancelNotification:]212userInfoID: D8490E9A-3110-4884-8B49-A1F0D6F26DFB size: WNPhotoSizeMedium | |
8 | 00:06:36:327 | $ -[WNGalleryCell setSelected:]86-[WNGalleryCell setSelected:] 0 | |
9 | 00:06:36:329 | $ -[WNGalleryCell update]178-[WNGalleryCell update] mongoID 05EF13CE-7E27-474A-A11F-21CB973A37A2 localID (null) |
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 "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/objdetect/objdetect.hpp" | |
#include "opencv2/highgui/highgui.hpp" | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include "openCVUtils.h" | |
using namespace cv; |
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 "opencv2/highgui/highgui.hpp" | |
#include "opencv2/imgproc/imgproc.hpp" | |
#include "openCVUtils.h" | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
static Mat _inImage; | |
static Mat _outImage; |
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
// | |
// svm_hog.cpp | |
// OpenCVSamples | |
// | |
// Created by jonathan on 29/07/2015. | |
// Copyright (c) 2015 foundry. All rights reserved. | |
// | |
#include "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/objdetect/objdetect.hpp" | |
#include "opencv2/highgui/highgui.hpp" |
OlderNewer