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
<!doctype html5> | |
<html> | |
<body> | |
<style type="text/css"> | |
<style> | |
#chart { | |
height: 500px; | |
} |
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
# coding=utf-8 | |
class CMDB: | |
values, valueHistory, publishers, subscribers = {}, {}, {}, {} | |
@staticmethod | |
def getValue(id): | |
return CMDB.values.get(id, None) | |
@staticmethod |
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
--verbose=true | |
--ec2_url=http://$CC_IP:8773/services/Cloud | |
--s3_host=$CC_IP | |
--cc_host=$CC_IP | |
--rabbit_host=$CC_IP | |
--sql_connection=mysql://nova:nova@$CC_IP/nova | |
--glance_port=9292 | |
--glance_host=$CC_IP | |
--use_s3=true | |
--libvirt_type=kvm |
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
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
print "Color indexes should be drawn in bold text of the same color." | |
colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
colored_palette = [ | |
"%02x/%02x/%02x" % (r, g, b) | |
for r in colored |
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/bash | |
# Converts QuickTime MOV to MP4 using H.264 (aka MPEG-4 Part 10) as video encoder | |
# Used for screencasts | |
# | |
# keywords: convert MOV to H.264, QuickTime, iMovie, MP4, MPEG, ffmpeg | |
# platform: OS X | |
# note: to get HD output from iMovie, export through "Share using QuickTime" | |
# | |
ffmpeg -i $1.mov -vcodec libx264 -vpre hq -b 800k $1.mp4 |
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
class Duple(val first : float, val second : float) | |
class DiagDuple(val sole : float) extends Duple(sole, sole) | |
class Ellipse[-F <: Duple](foci : F) { | |
private var m_foci : Duple = foci | |
def foci : Duple = m_foci | |
def foci_=(foci : F) = m_foci = foci | |
} |