Skip to content

Instantly share code, notes, and snippets.

View acywu's full-sized avatar
🎯
Focusing

Alex Wu acywu

🎯
Focusing
  • Hong Kong
View GitHub Profile
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
pragma solidity ^0.4.16;
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
pragma solidity ^0.4.11;
// File: contracts/Owned.sol
// ----------------------------------------------------------------------------
// QTG 'Quantum Token' token sale contract - Owned Contract
//
// The MIT Licence.
// ----------------------------------------------------------------------------
var express = require('express');
var config = require('../config');
var router = express.Router();
var rp = require('request-promise');
var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
router.get('/tx/:id', function(req, res, next) {
web3.eth.getTransaction(req.params.id, function(err,resp){
module AnxCoreServices.interceptor {
'user strict';
export interface IInterceptor {
request: Function;
}
export class headerInterceptor implements IInterceptor{
public static $inject = [];
@acywu
acywu / gist:b23170c40527157e965c
Created October 11, 2015 12:57
Auto HTML Bower inject
// Bower automatic
grunt-wiredep
@acywu
acywu / gist:0a04a974822be9c8b537
Created October 11, 2015 07:17
Fix NPM Package Unknown Error
// 1. Remove all NPM package and Reset setting
npm ls -gp | awk -F/ '/node_modules/ && !/node_modules.*node_modules/ {print $NF}' | xargs npm -g rm
// 2. Install Node.js again
@acywu
acywu / Material Compact Login Animation.markdown
Created July 29, 2015 03:16
Material Compact Login Animation
@acywu
acywu / designer.html
Last active August 29, 2015 14:18
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-progress/paper-progress.html">
@acywu
acywu / designer.html
Created April 9, 2015 10:49
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;