Skip to content

Instantly share code, notes, and snippets.

View frozeman's full-sized avatar

Fabian Vogelsteller frozeman

View GitHub Profile
@frozeman
frozeman / createContract.js
Last active September 5, 2018 18:57
Deploy contracts on Ethereum and reliable get the contract address
// -> Soldity
// **********
// Your Soldity contract
event Created(bytes32 indexed identifier);
contract MyContract {
function MyContract(bytes32 identifier) {
Created(identifier);
}
contract JSON_Test {
event Log0(uint value);
event Log0Anonym (uint value) anonymous;
event Log1(bool indexed aBool, uint value);
event Log1Anonym(bool indexed aBool, uint value) anonymous;
event Log2(bool indexed aBool, address indexed aAddress, uint value);
event Log2Anonym(bool indexed aBool, address indexed aAddress, uint value) anonymous;
event Log3(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value);
event Log3Anonym(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value) anonymous;
event Log4(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, int8 aInt8, uint value);
Process: mist [16296]
Path: /Users/USER/*/mist
Identifier: mist
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [598]
Responsible: iTerm [594]
User ID: 501
Date/Time: 2015-02-01 23:13:41.641 +0100
Process: mist [582]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:20:51.227 +0100
Process: mist [1709]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:45:50.829 +0100
@frozeman
frozeman / mist_2015-02-04-174337_Fabians-MacBook-Pro.crash
Created February 5, 2015 13:44
mist_2015-02-04-174337_Fabians-MacBook-Pro
Process: mist [8284]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [372]
Responsible: iTerm [241]
User ID: 501
Date/Time: 2015-02-04 17:43:35.647 +0100
@frozeman
frozeman / tapi18n-default-lanuage.js
Last active March 21, 2017 23:07
TAPi18n set default language
// SET default language
if(Cookie.get('TAPi18next')) {
TAPi18n.setLanguage(Cookie.get('TAPi18next'));
} else {
var userLang = navigator.language || navigator.userLanguage,
availLang = TAPi18n.getLanguages();
// set default language
if (_.isObject(availLang) && availLang[userLang]) {
TAPi18n.setLanguage(userLang);
@frozeman
frozeman / gist:c6196adb840102ee0dfd
Created January 21, 2015 08:44
List of all Meteor-platform packages
application-configuration removed from your project
autoupdate removed from your project
base64 removed from your project
binary-heap removed from your project
blaze removed from your project
blaze-tools removed from your project
boilerplate-generator removed from your project
callback-hook removed from your project
check removed from your project
ddp removed from your project
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
@frozeman
frozeman / gist:b3f016de58b04c99cfc3
Created November 11, 2014 20:27
Steps in phantomjs
var page = new WebPage(), testindex = 0, loadInProgress = false;
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.onLoadStarted = function() {
loadInProgress = true;
console.log("load started");
};