Skip to content

Instantly share code, notes, and snippets.

View Nub's full-sized avatar
🕶️

Zach Thayer Nub

🕶️
View GitHub Profile
7:40:39 PM Jack Perry: Soup
7:40:49 PM Zachry Thayer: Nothx
7:42:48 PM Zachry Thayer: How ya doin?
7:44:15 PM Jack Perry: Cock
7:44:26 PM Zachry Thayer: you are doing cock?
7:44:29 PM Zachry Thayer: See, I knew it.
7:49:53 PM Jack Perry: I wish it was your cock 😘
7:51:52 PM Zachry Thayer: o.o
7:52:33 PM Jack Perry: Don't act like you don't want it
7:52:57 PM Zachry Thayer: o________________o
//Pass
CGPathApply(path, (__bridge_retained void *)SVGString, SVGApplier);
//Access later in function
NSString* SVGString = (__bridge_transfer NSString*) info;
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0x984aeb0 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
#incoming request buid m3u8
#assume seconds
segmentLength = 10
segments = duration/10
for i in segments
concat somename_$i.ts to m3u8
self.player = [AVPlayer playerWithURL:assetURL];
// Setup video playback
AVPlayerLayer *thisPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player];
[self.view.layer addSublayer:thisPlayerLayer];
[player play];
3:53 neekers i've been strumming my guitar for like a full minute wondering why there was no sound from the mixing board to the amp. yes... the cord was not plugged in. i need help,
- (void)drawRect:(CGRect)rect
{
//Some variables
CGSize size = self.bounds.size;
CGContextRef context = UIGraphicsGetCurrentContext();
UIGraphicsPushContext(context);
CGContextClearRect(context, self.bounds);
//Snap grid for sharp pixels
//CGContextTranslateCTM (context, 0.5f,0.5f);
//
// YRFrequenciesLCDView.h
// frequenciesLCD
//
// Created by Zachry Thayer on 11/21/11.
// Copyright (c) 2011 Zachry Thayer. All rights reserved.
//
#import <UIKit/UIKit.h>
//
// YRFrequenciesLCDView.m
// frequenciesLCD
//
// Created by Zachry Thayer on 11/21/11.
// Copyright (c) 2011 Zachry Thayer. All rights reserved.
//
#import "YRFrequenciesLCDView.h"
[finiteNeedle applyTransform:CGAffineTransformMakeTranslation(finiteNeedleX, kYRFramePadding-0.5f)];
[finiteNeedle stroke];
[finiteNeedle fill];
[finiteNeedle applyTransform:CGAffineTransformMakeTranslation(-1.f * finiteNeedleX,-1.f * kYRFramePadding-0.5f)];
[freqNeedle applyTransform:CGAffineTransformMakeTranslation(freqNeedleX,size.height - (kYRFramePadding-0.5f))];
[freqNeedle stroke];
[freqNeedle fill];
[freqNeedle applyTransform:CGAffineTransformMakeTranslation(-1.f * freqNeedleX,-1.f * size.height - (kYRFramePadding-0.5f))];