Skip to content

Instantly share code, notes, and snippets.

View munair's full-sized avatar

munair munair

View GitHub Profile
@munair
munair / pc.md
Last active November 9, 2020 02:25 — forked from benjiqq/pc.md
PC standard

Participation Certifcates (PC)

Participation Certificates are project tokens that are not transferrable. They represent receivables for future deliverable assets.

Function

A PC is created exactly once (issuance) and destroyed once (redemption). It is not transferrable.

Purpose

@munair
munair / countries
Last active April 6, 2018 05:59 — forked from kalinchernev/countries
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria
library(jsonlite)
library(httr)
library(digest)
api.poloniex <- function(key, secret, command, args = list()) {
req <- c(list(
command = command,
nonce = round(as.numeric(Sys.time()) * 1e4, 0)),
args)
@munair
munair / JSONP.js
Created April 9, 2017 09:13 — forked from icodeforlove/JSONP.js
simple JSONP support
/**
* simple JSONP support
*
* JSONP.get('https://api.github.com/gists/1431613', function (data) { console.log(data); });
* JSONP.get('https://api.github.com/gists/1431613', {}, function (data) { console.log(data); });
*
* gist: https://gist.github.com/gists/1431613
*/
var JSONP = (function (document) {
var requests = 0,
@munair
munair / www-post-thumb.php
Created May 23, 2016 07:45 — forked from gmazzap/www-post-thumb.php
WordPress plugin that allow to use an external image url as featured image.
<?php namespace GM\WWWPostThumbnail;
/**
* Plugin Name: WWW Post Thumbnail
* Description: Allow to use an external image url as featured image.
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c
* Author: Giuseppe Mazzapica
* Author URI: https://github.com/Giuseppe-Mazzapica
* License: MIT
* Version: 0.1.0
*

Stephen Scaff's SCSS Banner

Uses bourbon... Thus add:

@import "bourbon"

This code is exactly the same as the code Stephen Scaff has on GitHub. This version just combines the partials for ease of creating a Pen.

A Pen by Munair Simpson on CodePen.

@munair
munair / javascript_resources.md
Created April 21, 2016 07:25 — forked from vieron/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage