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
centauri :: ~/test » cat x.txt | |
lkdjafs | |
lsjdkflkasjdf;lkajsdf | |
ajdsf | |
akjsdf | |
dsjflkasdfj | |
Installed Groups | |
a |
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
Facter.add('yum_installed_groups') do | |
setcode do | |
state = -1 | |
groups = [[], []] | |
%x{/usr/bin/yum grouplist -v}.each_line do |line| | |
if line.match('Installed Groups') | |
state = 0 | |
elsif line.match('Available Groups') | |
state = 1 | |
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
var svg = d3.select("body") | |
.append("svg:svg") | |
.attr("width", 256) | |
.attr("height", 256); | |
var defs = svg.append('svg:defs'); | |
defs.append('svg:linearGradient') | |
.attr('gradientUnits', 'userSpaceOnUse') | |
.attr('x1', 0).attr('y1', 0).attr('x2', 20).attr('y2', 0) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>PhoneGap window.location.reload() on Honeycomb</title> | |
</head> | |
<body> | |
<script> | |
var reloadMe = function() { | |
window.localStorage['foobar'] = Number(window.localStorage['foobar'] || 0) + 1; |
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
def getname(t): | |
if isinstance(t, ast.Attribute): | |
return getname(t.value) | |
elif isinstance(t, ast.Name): | |
return t.id | |
else: | |
return t | |
class EntryPointsVisitor(ast.NodeVisitor): | |
def visit_Assign(self, node): |
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 | |
# bdist_wheel demo | |
# Create environment | |
virtualenv /tmp/wheeldemo | |
cd /tmp/wheeldemo | |
# Install wheel and patched pip, distribute | |
bin/pip install -e hg+https://bitbucket.org/dholth/wheel#egg=wheel -e hg+https://bitbucket.org/dholth/distribute#egg=distribute -e git+https://github.com/dholth/pip.git#egg=pip |
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
{ | |
"executables": {}, | |
"file_sections": [ | |
{ | |
"category": "pythonfiles", | |
"target_dir": "$sitedir", | |
"name": "bentest", | |
"files": [ | |
[ | |
"bentest/__init__.py", |
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
#!/usr/bin/env python | |
# Install setup-requires before running setup.py | |
import sys | |
sys.path[0:0] = ['setup-requires'] | |
import os, subprocess, pkg_resources | |
try: | |
requirements = [x.strip() for x in open('setup-requires.txt', 'r').readlines()] |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Build a pip-compatible sdist for the flit package in the current directory. | |
""" | |
import flit, zipfile, os.path | |
def build_sdist(): | |
# build wheel |
OlderNewer