Skip to content

Instantly share code, notes, and snippets.

@msztolcman
msztolcman / .zshrc
Created April 14, 2020 07:07
.zshrc
# .zshrc is sourced in interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
# Search path for the cd command
cdpath=(~)
# Use hard limits, except for a smaller stack and no core dumps
unlimit
#!/usr/bin/env python
class Test:
@classmethod
def test(cls, data=[]):
data.append(1)
print(data)
Test.test()
t = Test()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import re
import sys
from pprint import pprint, pformat
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
# <bitbar.title>Alior Currencies</bitbar.title>
# <bitbar.version>v1.0.0</bitbar.version>
# <bitbar.author>Marcin Sztolcman</bitbar.author>
# <bitbar.author.github>msztolcman</bitbar.author.github>
# <bitbar.desc>Displays currencies from Alior Bank</bitbar.desc>

Keybase proof

I hereby claim:

  • I am msztolcman on github.
  • I am msztolcman (https://keybase.io/msztolcman) on keybase.
  • I have a public key ASDVafAJSwFx0tiBOF20gU2dQBZ7suQKowJJ6uUrEUJf8wo

To claim this, I am signing this object:

def f1():
return 1
l1 = lambda: 1
print('f1() == l1():', f1() == l1())
def f2(arg1):
return arg1
@msztolcman
msztolcman / gist:7869921
Last active December 30, 2015 18:49
installing ursa 0.8.0 on node 0.11
mmworker@ubuntu ~/mmworker % npm install ursa
npm WARN package.json random-tools@0.0.5 No repository field.
> ursa@0.8.0 install /home/mmworker/mmworker/node_modules/ursa
> node-gyp configure build && node install.js
make: Entering directory `/home/mmworker/mmworker/node_modules/ursa/build'
CXX(target) Release/obj.target/ursaNative/src/ursaNative.o
In file included from ../src/ursaNative.cc:3:0:
../src/ursaNative.h:6:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default]
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import os, os.path
import sys
import re
from pprint import pprint, pformat
var = 'hello world'
<?php
var_dump (error_reporting());
var_dump (error_reporting(error_reporting(E_ALL|E_STRICT)));
var_dump (error_reporting());
ini_set('display_errors', 1);
/*
1 int(22519)
2 int(32767)
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
class T {
public $dupa = 1;
}
$t = new T;