Skip to content

Instantly share code, notes, and snippets.

View ziyadparekh's full-sized avatar

Ziyad Parekh ziyadparekh

View GitHub Profile
@ronantreacy
ronantreacy / create_exo_browser.sh
Created August 25, 2014 09:50
A script for building the breach exo browser
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH":`pwd`/depot_tools
export GYP_GENERATORS='ninja'
if [ `uname` == 'Darwin' ]; then
export GYP_DEFINES=mac_sdk=10.8
fi
echo 'p' | svn ls https://src.chromium.org/chrome
echo 'p' | svn ls https://sctp-refimpl.googlecode.com/svn/trunk
echo 'p' | svn ls https://cld2.googlecode.com/svn/trunk
mkdir chromium && cd chromium
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script>
@mitchallen
mitchallen / myapp.conf
Created June 15, 2012 18:21
Example script for running a node app as a service under RHEL6 (sudo start. See the comments for usage.
#!upstart
description "myapp nodejs server"
author "Mitch Allen"
start on startup
stop on shutdown
respawn
expect fork
expect daemon

Search for functions via expected imput / output

I have a programming need. I need a function that most-likley exists already. Someone has made it and it's probably public. If it doesn't exist theres probably some combination of functions out there that exist that can make it happen.

Here's a string input and output.

'focus together' > 'focus_together'
'focusTogether' > 'focus_together'
'focus Together' > 'focus_together'
@benmorrow
benmorrow / GradientGenerator.swift
Last active November 18, 2016 18:17
Create a gradient to use as the background. Comes preloaded with many different colors. For any view, this will allow you to insert a sublayer with a multi-color background. Using Swift, iOS 8, and Xcode 6.
//
// GradientGenerator.swift
// WatchSimulator
//
// Created by Ben Morrow on 10/12/14.
//
// The most up-to-date version of this file is hosted at https://gist.github.com/benmorrow/aa3484dd3128875afbc0
//
import UIKit
@davegurnell
davegurnell / GLTest.java
Created July 15, 2012 09:28
LWJGL OpenGL version test case
import org.lwjgl.*;
import org.lwjgl.opengl.*;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;
import static org.lwjgl.opengl.GL20.*;
import static org.lwjgl.opengl.GL30.*;
import static org.lwjgl.util.glu.GLU.*;
import static org.lwjgl.BufferUtils.*;
public class GLTest {
@almost
almost / MyCustomView.m
Last active April 15, 2018 05:47
Examples from Custom iOS Views in React Native on almostobsolete.net
#import "MyCustomView.h"
@implementation MyCustomView
{
UIColor *squareColor;
}
- (void)setIsRed:(BOOL)isRed
{
squareColor= (isRed) ? [UIColor redColor] : [UIColor greenColor];
@mitchallen
mitchallen / post-receive
Created June 15, 2012 19:02
Example git post-receive hook - assumes you have a node.js app setup as a service that can be stopped and started. See the comments for usage.
#!/bin/sh
echo "Stopping service"
sudo stop myapp
echo "Deploying to test ..."
_TREE=/export/home/MY-USER/test
GIT_WORK_TREE=$_TREE git checkout -f
cd $_TREE
pwd
echo "Installing dependencies"
npm install
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
const React = require('react-native');
const FBSDKCore = require('react-native-fbsdkcore');
const FBSDKLogin = require('react-native-fbsdklogin');

A pseudonymous trust system for a decentralized anonymous marketplace

Dionysis Zindros, National Technical University of Athens dionyziz@gmail.com

Keywords

pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar

Abstract