- Extend your class with Debugable trait
- (optional) write initialCommands in build.sbt
- run sbt REPL on file chage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- clientkeys = | |
awful.key({ modkey, "Shift" }, "Left", | |
function (c) | |
local curidx = awful.tag.getidx() | |
local screen = mouse.screen | |
if curidx == 1 then curidx = 9 else curidx = curidx - 1 end | |
awful.client.movetotag(tags[client.focus.screen][curidx]) | |
awful.tag.viewonly(tags[screen][curidx]) | |
end), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Adds new virtual host to Apache and hosts file. | |
if [ "$#" -ne 2 ] | |
then | |
echo "Usage: addVHost.sh directory domain" | |
echo "Example: www/myProject myproject.local" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# About: | |
# Execute command when file is changed. | |
# | |
# Usage: | |
# ./iocron.sh filt/to/watch "echo 'command'" | |
# | |
# Dependencies | |
# sudo apt-get install inotify-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = [1,2]; | |
function f($b) { | |
xdebug_debug_zval('b'); | |
return [$b[1], $b[0]]; | |
} | |
xdebug_debug_zval('a'); | |
$c = f($a); | |
xdebug_debug_zval('c'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'context.php'; | |
$odd = array_flip(array_filter(array_flip($pairs), | |
function($key) { return $key % 2 == 0; } | |
)); | |
$even = array_diff($pairs, $odd); | |
$sumOdd = array_reduce($odd, Summation::$fSum); | |
$sumEven = array_reduce($even, ['Summation', 'rSum']); |
Copy server-client.html
into your server. E.g. it is http://aurelijus.banelis.lt/server-client.html
Run php -S localhost:12345 localhost-server.php
You should see 3
in http://localhost:12345/?a=1&b=2
You should see 1+2 = 3
when opened server-client.html
on your own server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
import -window root `date +%s-%N`.jpg | |
sleep 1 | |
done; |
Visuals for prezentation: Being lazy in practice
OlderNewer