Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Learning Go

Edward Dale scompt

🎓
Learning Go
View GitHub Profile
View gist:0ae7957c351ababd73bd3582d92ef7ed
BEGIN MESSAGE.
CAKSbgxUhf3QiFZ dJA4GbG3itcu0SG bOfXQ9mV0NGuLHJ xFtIidtcBMGEn0L
V5EAZ6DFQhrzOV7 4Cyb5Du9RU4TCKq 6Xr2MZHgg6tEG3h nLD5gzyKChF84Om
F1HvPu0rbPErjNL SOBgJ4TKGG3tnjW gtf6QNNNBrPi0t5 EQvlVGvNWVSZaYs
rVTRkPE8LQYfyWV PuiImApXm0a7E6W rPkI621.
END MESSAGE.
@scompt
scompt / download_workouts.sh
Last active Oct 19, 2020
A script to download workouts and exercise alternatives. Prerequisites are GNU Parallel, cURL, and jq.
View download_workouts.sh
#!/bin/bash
USERNAME=d@t.com
PASSWORD=r
LANGUAGES="en fr it ja tr es pt de"
PATHS="v3/coach/workouts v2/coach/workouts v2/coach/exercise_alternatives"
echo "Logging in"
export ID_TOKEN=`curl --silent -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
View sdk-artifactory-sync.sh
#!/bin/bash
# Based on https://github.com/JFrogDev/project-examples/blob/master/bash-example/deploy-folder-by-checksum.sh
export repo_url=
export tgt_repo=
export user=
export pass=
export dir="$1"
View keybase.md

Keybase proof

I hereby claim:

  • I am scompt on github.
  • I am scompt (https://keybase.io/scompt) on keybase.
  • I have a public key whose fingerprint is 5226 89E9 DA1C 447A 0025 2EBB 1B77 22E3 CEDA A0E4

To claim this, I am signing this object:

@scompt
scompt / gist:5841542
Last active Dec 18, 2015
A code snippet to visualize the placement of cells in a UICollectionViewLayout. Stick it at the bottom of the layoutAttributesForElementsInRect: method and copy/paste the output in your terminal window and you'll something like this: http://i.imgur.com/X74mB0v.png.
View gist:5841542
NSMutableString *magick = [[NSMutableString alloc] init];
[magick appendString:@"xc:skyblue -fill white -stroke black "];
int minX = rect.origin.x;
int minY = rect.origin.y;
int maxX = rect.size.width;
int maxY = rect.size.height;
for (UICollectionViewLayoutAttributes *att in theLayoutAttributes) {
minX = MIN(minX, att.frame.origin.x);
minY = MIN(minY, att.frame.origin.y);
View gist:5794762
+ (void) createPinWithClientId:(NSString *)clientId
imageURL:(NSURL *)imageURL
sourceURL:(NSURL *)sourceURL
description:(NSString *)descriptionText {
Pinterest *pinterest = [[Pinterest alloc] initWithClientId:clientId];
[pinterest createPinWithImageURL:imageURL sourceURL:sourceURL description:descriptionText];
}
View gist:5794632
@implementation ViewController
- (void) viewDidLoad {
UIGestureRecognizer *recog = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gogo:)];
[self.view addGestureRecognizer:recog];
}
- (void) gogo:(UIGestureRecognizer *)recog {
NSString *clientId = [NSMutableString stringWithString:@"1431665"];
Pinterest *pinterest = [[Pinterest alloc] initWithClientId:clientId];
View gist:5744806
I am a third-year Computer Science student at Rochester Institute of Technology seeking a co-op
position that will complement the classes that I am currently taking. I am pursuing a BS and
MS in Computer Science from RIT and would like to concentrate in cryptography and information
security. I believe that my academic interests and my excitement for programming would make me
an ideal employee at the NSA.
@scompt
scompt / gist:4972292
Last active Dec 13, 2015
My opinion of social networks from an email on 3/16/2005
View gist:4972292
They're so pointless!!!!
There's one that *everybody* at RIT does called thefacebook.com.
Apparently it was written by some guys at Harvard and lots of schools
use it now.
Crap!
@scompt
scompt / AssertListSizeAction.java
Created Aug 10, 2012
Calabash verify list size
View AssertListSizeAction.java
package sh.calaba.instrumentationbackend.actions.list;
import android.widget.ListView;
import sh.calaba.instrumentationbackend.InstrumentationBackend;
import sh.calaba.instrumentationbackend.Result;
import sh.calaba.instrumentationbackend.actions.Action;
import java.lang.Integer;
import java.lang.String;
You can’t perform that action at this time.