Game Demo
- tile based - 16x16 tiles
- battlefield scale is... 94x44 - might be adjusted!
| # 🔥 Overdue | |
| #+BEGIN_QUERY | |
| { :query [:find (pull ?b [*]) | |
| :in $ ?duetoday | |
| :where | |
| [?b :block/marker ?m] | |
| [(contains? #{"TODO" "DOING"} ?m)] | |
| [?b :block/deadline ?d] | |
| [(<= ?d ?duetoday)]] | |
| :inputs [:today] |
| 'use strict'; | |
| const gulp = require('gulp'); | |
| gulp.task('clean', clean); | |
| gulp.task('build', build); | |
| gulp.task('default', gulp.series(clean, build, watch)); | |
| function clean() { | |
| const del = require('del'); |
| <?php | |
| header('Content-Type: image/jpeg'); | |
| echo file_get_contents('http://[FOSCAM_IP]:[PORT]/snapshot.cgi?user=[USERNAME]&pwd=[PASSWORD]'); |
| <?php | |
| /** | |
| * php ninjablock presence driver | |
| * usage: | |
| * | |
| * nohup php -f ninja-presence.php 2>&1 & | |
| */ | |
| include 'nbapi.php'; | |
| date_default_timezone_set('CET'); |
| my $ticket = $self->TicketObj; | |
| my $groups = $self->TransactionObj->CreatorObj->OwnGroups; | |
| while (my $group = $groups->Next) { | |
| $ticket->AddWatcher(Type=>"Cc",PrincipalId=>$group->Id); | |
| } |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
| <style> | |
| body { | |
| margin-top: 250px; | |
| height: 2000px; | |
| background: url(http://images3.pixlis.com/background-image-stripes-and-lines-seamless-tileable-floral-white-lily-white-232etr.png) repeat; | |
| } |
| #!/bin/bash | |
| DATE=`date +"%Y-%m-%d %H:%M:%S"` | |
| TEMP=`/opt/vc/bin/vcgencmd measure_temp | egrep -o --color=never "[0-9.]+"` | |
| PATH=`dirname "$0"` | |
| echo "$DATE $TEMP" >> $PATH/temp.csv |
| # copied from... bah, I don't know anymore | |
| # __git_ps1 should do the same, but you won't get any dirty info :( | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
| } | |
| export PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ ' |