Skip to content

Instantly share code, notes, and snippets.

View Nub's full-sized avatar
🕶️

Zach Thayer Nub

🕶️
View GitHub Profile
//
// UIImage+Additions.m
// SteveJobsTribute
//
// Created by Zachry Thayer on 10/11/11.
// Copyright (c) 2011 Yoshimi Robotics. All rights reserved.
//
#import "UIImage+Additions.h"
//
// main.m
// fccRadioListParser
//
// Created by Zachry Thayer on 11/14/11.
// Copyright (c) 2011 Zachry Thayer. All rights reserved.
//
#import <Foundation/Foundation.h>
/*
* How to search for images and restrict them by color.
*/
google.load('search', '0');
function OnLoad() {
// Create a search control
var searchControl = new google.search.SearchControl();
//
// main.m
// fccRadioListParser
//
// Created by Zachry Thayer on 11/14/11.
// Copyright (c) 2011 Zachry Thayer. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "stdafx.h"
#include <stdio.h>
int main()
{
printf("Please enter your problem:\n");
while(1)
{
//
// main.m
// ImageNabber
//
// Created by Zachry Thayer on 11/15/11.
// Copyright (c) 2011 Zachry Thayer. All rights reserved.
//
#import <Foundation/Foundation.h>
void getImageUrlForCallsign(NSString *callsign){
NSString *searchURL = [NSString stringWithFormat:@"http://www.bing.com/images/search?q=%@+logo&go=&qs=n&sk=&sc=8-4&form=QBIR", callsign];
NSString *regexOneliner = [NSString stringWithFormat:@"/usr/local/bin/wget -O tmp.txt \"%@\";sleep 2;cat tmp.txt | perl -ne '/class=\"sg_t\" src=\"([^>]*)\" style=\"([^>]*)\"/; print \"$1,\" ' >> tmp2.txt;echo '\"%@\":\"' >> allText.json; cat tmp2.txt | perl -ne '/,*(http[^,]*).*/; print \"$1\"' >> allText.json;echo '\",' >> allText.json;echo 'Done'; rm tmp.txt; rm tmp2.txt",
searchURL, callsign];
- (void)myProperty
{
if(!myProperty)
{
//allocate/default init
}
return myProperty;
}
git push origin master
To enfield@documations.org:/Code/ScribbeoMacServer
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'enfield@documations.org:/Code/ScribbeoMacServer'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
@interface YRFrequenciesLCDView : UIView
@property (nonatomic) CGFloat frequency;
@end