Skip to content

Instantly share code, notes, and snippets.

View suparngp's full-sized avatar
🎯
Focusing

Suparn suparngp

🎯
Focusing
View GitHub Profile
@suparngp
suparngp / chrome-extensions
Last active June 1, 2016 15:50
Turn websites into Mac Applications with all the chrome extensions like Adblock, Ghostery. Any time you install an extension in your main chrome instance, those extensions are also available within your web apps. Copy the two files under /usr/local/bin and make them executable by running chmod +x /usr/local/bin/chromer chmod +x /usr/local/bin/ch…
#!/usr/bin/env node
var fs = require("fs");
var path = require("path");
var appName = "";
var appURL = "";
var appIcon = "";
var chromePath = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
var appRoot = "/Applications/Web Apps"
import PushKit
import AdSupport
import Foundation
class AppDelegate: UIResponder, UIApplicationDelegate {
var voipRegistry:PKPushRegistry!
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
@suparngp
suparngp / MyOperation.swift
Created October 6, 2015 18:25
Checking for states in the NSOperation
import Foundation
class MyOperation:NSOperation{
// the states of the operation.
enum State {
case Ready, Executing, Finished
func keyPath() -> String {
switch self {
case Ready: