Skip to content

Instantly share code, notes, and snippets.

contract AES721 =
// state is handled for the storing the elements on blockchain
record state = {
name: string,
symbol: string,
owner: address,
_totalSupply : int,
_nextTokenId: int,
assetProperties: map(int, properties),
===== BEGIN SOLIDSTAMP VERIFICATION =====
qmshbo92nkikdpwtvt46uyuvvznu2q7w
===== END SOLIDSTAMP VERIFICATION =====
pragma solidity ^0.4.17;
import "zeppelin/contracts/ownership/Ownable.sol";
import "zeppelin/contracts/ownership/Contactable.sol";
contract Vouchers is Contactable {
event Inserted(address owner, address buyer, string title, string description, bool sold, bool revoked, uint price, uint index);
event Sold(uint index);
event Revoked(uint index);
pragma solidity ^0.4.24;
import "./Pausable.sol";
import "./Owned.sol";
import "./ERC20.sol";
import "./SafeMath.sol";
contract ApproveAndCallFallBack {
function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}
const coursePage = (function () {
function handleSession() {
const token = localStorage.getItem('token');
if (!token) {
$('.trial').show();
$('.onLogin').hide();
}
// ~/myApp/config/logger.js
const winston = require('winston');
const env = process.env.NODE_ENV || 'development';
const fs = require('fs');
const logDir = 'log';
if (!fs.existsSync(logDir)) {
fs.mkdirSync(logDir);
}
@Preetam007
Preetam007 / curl.md
Created March 1, 2018 16:20 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

{
"//" : "full stack developer of 3 years of experience",
"name" : "preetam",
"address" : "sector 53 ,gurgaon",
"skills" : ["javascript","node.js","monogodb","aws","elasticsearch","electron.js","gulp","bower","jquery","c#"],
"experience" : [
{
"company name" : "darwin labs pvt ltd",
"work" : " desktop apps(electron js) , node.js APIS, c# virtual reality"
}
@Preetam007
Preetam007 / javascript_resources.md
Last active May 19, 2016 12:51 — forked from jookyboi/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
@Preetam007
Preetam007 / 0_reuse_code.js
Last active May 19, 2016 12:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console