I hereby claim:
- I am carlosmcevilly on github.
- I am carlosity (https://keybase.io/carlosity) on keybase.
- I have a public key whose fingerprint is 213E 95F2 2CBD C8CD BB12 7E63 015F D971 F9D6 B7C7
To claim this, I am signing this object:
#!/bin/bash | |
export index=~/work/indexes | |
mkdir -p $index | |
cd ~/work | |
for dir in `ls -d *` | |
do | |
if [[ -d "$dir" ]]; then | |
echo doing $dir |
/* from Bill Dudney's Practical Drawing session at 2011 WWDC */ | |
+ (UIImage *)scaleImage:(UIImage *)image toSize:(CGSize)newSize { | |
UIGraphicsBeginImageContextWithOptions(newSize, YES, 0.0); | |
CGRect imageRect = {{0.0, 0.0}, newSize}; | |
[image drawInRect:imageRect]; | |
UIImage *scaledImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return scaledImage; | |
} |
#!/usr/bin/env python3 | |
""" | |
Add tags to a set of comment lines in notes.txt | |
This opens a file called notes.txt in the current | |
working directory (creating the file if it does not | |
exist) and prepends lines to it containing the tags | |
that are passed in on the command line. Tags are | |
only added once. Can be run again any time to add |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $path = $ENV{'XcodeProjectPath'}; | |
$path =~ s{(.*)/\w+\.xcodeproj}{"$1"}; | |
my $cmd = "/usr/bin/find $path -type f -name \"*.[mh]\" -print"; | |
my $files = qx($cmd); |
python3 -m http.server |
javascript:void(window.location=window.location.toString().replace(/%5Ehttps:%5C/%5C/(?:www%5C.)?github%5C.com%5C/(%5Cw+)(?:%5C/.*)?$/,'https://gists.github.com/$1')) |
I hereby claim:
To claim this, I am signing this object:
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
# $Id: make-ios-ovpn.pl,v 0.0 2015/01/07 06:18:40 carlos Exp $ | |
my ($pfxfile, $ovpnfile, $out, $rest) = @ARGV; | |
error_exit("usage: $0 <pfxfile> <ovpnfile> <out>") | |
unless (defined($out) && !defined($rest)); |
#!/bin/bash | |
# | |
# Using the information available in the new iOS8 simulator for each | |
# device/runtime (device.plist), this script creates a readable folder structure | |
# (no UDIDs, just simple device/runtime names). Inside that structure it creates | |
# soft links to your apps in development. | |
# | |
# You can run this script every time you install an app to your simulator, or | |
# you can simply call it to access this folder making sure it will always be | |
# updated :) |