Skip to content

Instantly share code, notes, and snippets.

View dariuskasperavicius's full-sized avatar
😉

Darius Kasperavicius dariuskasperavicius

😉
View GitHub Profile
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract TutorialToken is ERC20 {
string public name = "TutorialToken";
string public symbol = "TT";
uint8 public decimals = 2;
uint public INITIAL_SUPPLY = 12000;
@dariuskasperavicius
dariuskasperavicius / mc-mac-shortcuts.txt
Last active December 21, 2016 08:40 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@dariuskasperavicius
dariuskasperavicius / speed_test.php
Last active August 29, 2015 14:27
foreach vs array_walk
<?php
$testBase = array_fill(0, 100000, 'testdata');
echo "Test array count: " . count($testBase) . PHP_EOL;
for($x = 0; $x < 10; $x++ ) {
echo "Test #$x" . PHP_EOL;
/* foreach test */