Skip to content

Instantly share code, notes, and snippets.

View lukassup's full-sized avatar
🍕

Lukas Šupienis lukassup

🍕
  • Lithuania
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from ctypes import CDLL
dll = 'dylib' if sys.platform == 'darwin' else 'so.6'
libc = CDLL('libc.%s' % dll)
libc.time(-1)
# ab-loop-a=no # Time
# ab-loop-b=no # Time
# access-references=yes # Flag
# ad= # String
# ad-lavc-ac3drc=0.000000 # Float (0 to 6)
# ad-lavc-downmix=yes # Flag
# ad-lavc-o= # Key/value list
# ad-lavc-threads=1 # Integer (0 to 16)
# af*= # Object settings list
# af-defaults= # Object settings list
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
%w(node1 node2).each do |vm_name|
config.vm.define vm_name do |node|
node.vm.box = "centos/6"
end
end
# config.vm.provision "shell", inline: <<-SHELL
def h(text):
print '<h3>' + text + '</h3>'
def here(self):
p = self.get_current_position()
return p['x'], p['y']
def moves(self):
top, mid, bot = self.get_neighbours()
return (

git rebase

% git clone https://github.com/dhoer/chef-nexus3
Cloning into 'chef-nexus3'...
remote: Counting objects: 701, done.
remote: Total 701 (delta 0), reused 0 (delta 0), pack-reused 700
Receiving objects: 100% (701/701), 98.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (347/347), done.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
"""TODO: add module description."""
from __future__ import (
absolute_import, # Python 2.5+
print_function, # Python 2.6+
unicode_literals, # Python 2.6+
with_statement, # Python 2.5+
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.