Skip to content

Instantly share code, notes, and snippets.

@shakked
shakked / lyrics.json
Last active December 21, 2015 20:30
Lyrics and artits
[
{
"artist":"2 Pac",
"lyric":"Even the genius asks questions."
},
{
"artist":"Alanis Morissette",
"lyric":"When pain brings you down, don't be silly, don't close your eyes and cry, you just might be in the best position to see the sun shine."
},
{
[
{
"author": "Abraham Lincoln",
"quote": "Things may come to those who wait, but only the things left by those who hustle.",
"image": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Abraham_Lincoln_November_1863.jpg"
},
{
"author": "Adam Smith",
"quote": "The great secret of education is to direct vanity to proper objects.",
@shakked
shakked / funnyQuotes.json
Last active December 17, 2023 05:09
Funny Quotes
[
{
"author":"Abraham Lincoln",
"quote":"No man has a good enough memory to be a successful liar."
},
{
"author":"Albert Einstein",
"quote":"When you are courting a nice girl an hour seems like a second. When you sit on a red-hot cinder a second seems like an hour. That's relativity."
},
{
@shakked
shakked / businessQuotes.json
Created January 20, 2016 18:03
Business Quotes
[
{
"author":"Abraham Lincoln",
"quote":"If there is anything that a man can do well, I say let him do it. Give him a chance."
},
{
"author":"Adam Smith",
"quote":"It is not from the benevolence of the butcher, the brewer, or the baker that we expect our dinner, but from their regard to their own interest."
},
{
@shakked
shakked / loveQuotes.json
Created January 20, 2016 18:09
Love Quotes
[
{
"author":"Albert Einstein",
"quote":"You can't blame gravity for falling in love."
},
{
"author":"Alexander Smith",
"quote":"Love is but the discovery of ourselves in others, and the delight in the recognition."
},
{
//
// UserInteractionFetcher.swift
// Instagrowth
//
// Created by Zachary Shakked on 1/17/16.
// Copyright © 2016 Zachary Shakked. All rights reserved.
//
import UIKit
import AFNetworking
import UIKit
import AFNetworking
class InstagramQuerier: NSObject {
static let sharedQuerier = InstagramQuerier()
private let manager : AFHTTPRequestOperationManager = AFHTTPRequestOperationManager()
func fetchFollowers(account: Account, count: Int = -1, completion: (Bool, [User]) -> (Void)) {
let params = "/users/\(account.userId)/followed-by|access_token=\(account.accessToken)"
let sig = HMAC.signWithKey(UserSettings.InstagramClientSecret(), usingData: params)
//
// EngagementCrawler.swift
// Instagrowth
//
// Created by Zachary Shakked on 10/8/15.
// Copyright © 2015 Zachary Shakked. All rights reserved.
//
import UIKit
func verifyButtonPressed() {
let rawNumber = mobileNumberTextField.text ?? ""
do {
let phoneNumber = try PhoneNumber(rawNumber: rawNumber, region: "US")
let formattedPhoneNumber = phoneNumber.toInternational()
self.mobileNumberTextField.text = formattedPhoneNumber
let verification = SMSVerification(applicationKey: C.APIs.SinchKey(), phoneNumber: formattedPhoneNumber)
self.verification = verification
startActivityIndicator()
self.verification?.initiate { (succeeded, error) in
#include "my.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
int main(int argc, char **argv)
{
FILE *fp;
char str[60];