Skip to content

Instantly share code, notes, and snippets.

View nerr's full-sized avatar
🌴
On vacation

CodingChef nerr

🌴
On vacation
View GitHub Profile
@nerr
nerr / README.txt
Created November 12, 2022 02:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created with 'Default' template
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with increasing levels of complexity.
@nerr
nerr / settings.json
Last active May 24, 2017 04:35
vscode user settings
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 17,
"editor.fontFamily": "SourceCodePro-ExtraLight",
"workbench.colorTheme": "Monokai",
"workbench.statusBar.visible": true,
"[c]": {
"editor.quickSuggestions": false
},
@nerr
nerr / yii_command_line
Last active October 16, 2015 10:32
base Yii2
## print help info
./yii help gii/model
## create a common model
./yii gii/model --tableName=project --ns='common\models' --modelClass=Project
./yii gii/model --tableName=project_status --ns='common\models' --modelClass=ProjectStatus
@nerr
nerr / Preferences.sublime-settings
Last active August 29, 2015 14:02
Sublime user settings
{
"color_scheme": "Packages/Colorsublime-Themes/Peacock.tmTheme",
"default_encoding": "UTF-8",
"font_face": "Source Code Pro Light",
"font_options":
[
"no_round"
],
"font_size": 11,
"ignored_packages":
@nerr
nerr / nerr_komodoide_scheme.ksf
Last active August 29, 2015 14:02
Komodo IDE代码高亮配置文件
Version = 7
Booleans = {'caretLineVisible': True, 'preferFixed': 1, 'useSelFore': False}
CommonStyles = {'attribute name': {'fore': 8904824},
'attribute value': {'fore': 13676752},
'bracebad': {'back': 16711680, 'bold': 1, 'fore': 10197815},
'bracehighlight': {'bold': 1, 'fore': 10197815},
'classes': {'fore': 7632127},
'comments': {'fore': 11382189, 'italic': 1},
@nerr
nerr / ipinfo.class.php
Created June 11, 2014 10:11
PHP类ipinfo.class.php,支持64位
<?php
/*
* Leon
* http://nerrsoft.com
* leon@nerrsoft.com
* 2011-04-11
*/
class ipInfo{
var $address;
@nerr
nerr / g.bat
Created June 11, 2014 10:10
git操作菜单批处理脚本(For Windows)
@echo off
:: color 17
:: title
@title git batch
:: check
:check
cls
echo. =-=-=-=-=git status=-=-=-=-=
@nerr
nerr / mwan3.conf
Last active October 26, 2015 11:32
mwan3 load balance config file for OpenWRT
####
#### interfaces
####
config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option reliability '2'