Example of running
bb scan.clj --search nodejs
or use the below command with vscode calva emacs or similar bb nrepl-server
(defun sqlite-mode-extras-completing-read-field (table column) | |
"Do a grouped select to get some completion candidates" | |
(delq nil (flatten-tree (sqlite-execute | |
sqlite--db | |
(format "SELECT %s FROM %s GROUP BY %s limit 100" | |
column | |
table | |
column))))) |
Example of running
bb scan.clj --search nodejs
or use the below command with vscode calva emacs or similar bb nrepl-server
#!/usr/bin/env bash | |
echo "Docker" | |
echo "---" | |
# http://stackoverflow.com/a/14853319 | |
TOP_OUTPUT=$(docker ps -q | xargs docker inspect --format="http://{{if ne \"\" .NetworkSettings.IPAddress}}{{ printf \"%.22s\" .NetworkSettings.IPAddress}}{{else}}{{range .NetworkSettings.Networks}}{{printf \"%.22s\" .IPAddress}}{{end}}{{end}} {{printf \"%.30s\" .Name}} | href=\"http://{{if ne \"\" .NetworkSettings.IPAddress}}{{ printf \"%.22s\" .NetworkSettings.IPAddress}}{{else}}{{range .NetworkSettings.Networks}}{{printf \"%.22s\" .IPAddress}}{{end}}{{end}}\"" | column -t -s@ -c 80) | |
echo "$TOP_OUTPUT | font=monospace bash=top useMarkup=true" |
#!/usr/bin/python | |
import os | |
import sys | |
import OpenGL | |
# OpenGL.USE_ACCELERATE = False | |
# OpenGL.ERROR_CHECKING = False | |
from OpenGL.GLUT import * | |
from OpenGL.GLU import * | |
from OpenGL import GL as GL |
#!/usr/bin/python | |
import os | |
import sys | |
from OpenGL.GLU import * | |
from OpenGL import GLX | |
from OpenGL import GL as GL | |
from ctypes import * | |
import gi | |
gi.require_version('Gtk', '3.0') |
I hereby claim:
To claim this, I am signing this object:
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int ir_led = 4; |
def fetch_tiles(startColumn, endColumn, rows=20): | |
tilesToDraw = tiles[0:rows, startColumn:endColumn] | |
for rowCount, row in enumerate(tilesToDraw): | |
for columnCount, column in enumerate(row): | |
yield rowCount, columnCount | |
# Draw the tile array to the screen | |
def drawScreenTiles(tiles, pixelsScrolled, levelPosition): | |
startColumn = levelPosition / tileSize |
#!/usr/bin/env/python3 | |
# This file is /home/me/test-dbus.py | |
# Remember to make it executable if you want dbus to launch it | |
# It works with both Python2 and Python3 | |
from gi.repository import Gtk | |
import dbus | |
import dbus.service | |
from dbus.mainloop.glib import DBusGMainLoop |
import os | |
import Queue | |
import argparse | |
import webbrowser | |
import socket, fcntl, struct | |
import time, threading | |
from subprocess import Popen, PIPE | |
from docker import Client | |
docker_client = Client(base_url='unix://var/run/docker.sock') |