Skip to content

Instantly share code, notes, and snippets.

Tao Zhang windse7en

Block or report user

Report or block windse7en

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@windse7en
windse7en / attack.sol
Last active Feb 3, 2018
破解成功代码
View attack.sol
pragma solidity ^0.4.17;
contract BasicMultiOwnerVault {
address[] public authorizedUsers;
address public owner;
address public withdrawObserver;
// 破解要用的新的contract地址
address public additionalAuthorizedContract;
// 用来更新additionalAuthorizedContract的中间变量
address public proposedAAA;
@windse7en
windse7en / simple_test.sol
Created Feb 1, 2018
简易测试代码,comment掉了用户验证部分
View simple_test.sol
pragma solidity ^0.4.17;
contract BasicMultiOwnerVault {
address[] public authorizedUsers;
address public owner;
address public withdrawObserver;
// 破解要用的新的contract地址
address public additionalAuthorizedContract;
// 用来更新additionalAuthorizedContract的中间变量
address public proposedAAA;
@windse7en
windse7en / Test.sol
Last active Feb 1, 2018
Test contract code
View Test.sol
pragma solidity ^0.4.17;
contract BasicMultiOwnerVault {
address[] public authorizedUsers;
address public owner;
address public withdrawObserver;
// 破解要用的新的contract地址
address public additionalAuthorizedContract;
// 用来更新additionalAuthorizedContract的中间变量
address public proposedAAA;
View temp.js
{
test: /\.(scss|css)$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [{
loader: 'css-loader',
}, {
loader: 'postcss-loader',
options: {
plugins() {
@windse7en
windse7en / test.js
Created May 11, 2017
test js file for phantomjs
View test.js
// phantomjs --remote-debugger-port=9000 --remote-debugger-autorun=true test.js urlPath
/*
* screenshot will be created in the cwd.
*/
var page = new WebPage();
var system = require('system');
var url = 'http://localhost:8080/#/tests/' + system.args[1];
function takeScreenshot() {
@windse7en
windse7en / heroku_log_with_express.txt
Created May 8, 2017
Heroku log after updating to use express
View heroku_log_with_express.txt
2017-05-08T19:03:30.965505+00:00 app[api]: Initial release by user bjankord@gmail.com
2017-05-08T19:03:30.965505+00:00 app[api]: Release v1 created by user bjankord@gmail.com
2017-05-08T19:03:31.132869+00:00 app[api]: Enable Logplex by user bjankord@gmail.com
2017-05-08T19:03:31.132869+00:00 app[api]: Release v2 created by user bjankord@gmail.com
2017-05-08T19:03:33.472991+00:00 app[api]: Release v3 created by user bjankord@gmail.com
2017-05-08T19:03:33.472991+00:00 app[api]: Set NODE_ENV, NPM_CONFIG_PRODUCTION, NODE_MODULES_CACHE config vars by user bjankord@gmail.com
2017-05-08T19:03:34.000000+00:00 app[api]: Build started by user bjankord@gmail.com
2017-05-08T19:06:44.934039+00:00 app[api]: Deploy bcc0784 by user bjankord@gmail.com
2017-05-08T19:06:44.952435+00:00 app[api]: Scaled to web@1:Free by user bjankord@gmail.com
2017-05-08T19:06:44.934039+00:00 app[api]: Release v4 created by user bjankord@gmail.com
@windse7en
windse7en / heroku_log.txt
Created May 8, 2017
heroku memory quota exceeded issue
View heroku_log.txt
This file has been truncated, but you can view the full file.
2017-05-07T23:15:16.865308+00:00 heroku[web.1]: Process running mem=630M(123.1%)
2017-05-07T23:15:16.865486+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-05-07T23:15:37.697874+00:00 heroku[web.1]: Process running mem=630M(123.1%)
2017-05-07T23:15:37.698000+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-05-07T23:15:58.830420+00:00 heroku[web.1]: Process running mem=630M(123.1%)
2017-05-07T23:15:58.830529+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-05-07T23:16:19.926742+00:00 heroku[web.1]: Process running mem=630M(123.1%)
2017-05-07T23:16:19.926858+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-05-07T23:16:40.808969+00:00 heroku[web.1]: Process running mem=630M(123.1%)
@windse7en
windse7en / ImmutableI18n.jsx
Last active Mar 17, 2017
Support immutableState
View ImmutableI18n.jsx
import React from 'react';
import { FormattedMessage } from 'react-intl';
import { I18nProvider, i18nLoader } from '../../lib/I18n';
const { Map } = require('immutable');
class Base extends React.Component {
constructor(props) {
super(props);
@windse7en
windse7en / Grid_2.jsx
Last active Feb 13, 2017
Grid with attributes format
View Grid_2.jsx
import React, { PropTypes } from 'react';
import GridRow from '../src/GridRow';
import GridColumn from '../src/GridColumn';
import '../src/grid.scss';
const propTypes = {
children: PropTypes.node.isRequired,
};
You can’t perform that action at this time.