Skip to content

Instantly share code, notes, and snippets.

[{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
Verifying my Blockstack ID is secured with the address 1BpL8UxXST5dXiDhm4rBiobUoPQHZJiWpy https://explorer.blockstack.org/address/1BpL8UxXST5dXiDhm4rBiobUoPQHZJiWpy
0x5585CB3dd6002570810FAC073DB209c6BB9049DD
pragma solidity ^0.4.11;
contract MBToken {
address public owner;
function Owned() {
owner = msg.sender;
}
[
{
"discount": 10,
"discountDescription": "description",
"expiryAt": "2017-12-31T00:00:00Z",
"name": 1,
"numberOfCoupons": 10,
"vendor": {
"address": "36, Arakashan Road, Opp. Church, Ram Nagar, New Delhi",
"name": "Hotel Ajanta",
0xb926e63dCB450703658186F310e3c95dF140d449
'use strict';
var fs = require('fs'),
util = require('util'),
http = require('http'),
https = require('https'),
httpProxy = require('http-proxy'),
cache = require('./cache'),
memoryMonitor = require('./memorymonitor');
var httpProxy = require('http-proxy');
httpProxy.createServer(function (req, res, proxy) {
var buffer = httpProxy.buffer(req);
middleware(res, function() {
console.log("The request was proxied");
});
proxy.proxyRequest(req, res, {
@hackable
hackable / expressjs-base64-image.js
Created October 18, 2011 05:21
Node.js base64 encode a downloaded image for use in data URI
express = require("express")
request = require("request")
BufferList = require("bufferlist").BufferList
app = express.createServer(express.logger(), express.bodyParser())
app.get "/", (req, res) ->
if req.param("url")
url = unescape(req.param("url"))
request
uri: url
encoding: 'binary'