Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
if __name__ == '__main__':
display=pyglet.window.get_platform().get_default_display()
screens = display.get_screens()
wallfilename='wallpaper'+str(WIDTH)+'.png'
if len(screens) > 1:
#WIDTH=
w = MTWindow( fullscreen=True, config=screens[1].get_best_config())
#w = MTWindow( fullscreen=True, screens=screens[1])
else:
diff --git a/Library/Formula/cppcheck.rb b/Library/Formula/cppcheck.rb
index d9b43ab..409d7d4 100644
--- a/Library/Formula/cppcheck.rb
+++ b/Library/Formula/cppcheck.rb
@@ -1,17 +1,18 @@
require 'formula'
class Cppcheck < Formula
- url 'http://github.com/danmar/cppcheck/tarball/1.42'
+ url 'http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.43/cppcheck-1.43.tar.bz2'
diff --git a/Library/Formula/ganglia.rb b/Library/Formula/ganglia.rb
index 55dfa78..747b1c7 100644
--- a/Library/Formula/ganglia.rb
+++ b/Library/Formula/ganglia.rb
@@ -5,34 +5,197 @@ class Ganglia <Formula
homepage 'http://ganglia.sourceforge.net/'
md5 '6aa5e2109c2cc8007a6def0799cf1b4c'
+ depends_on 'confuse'
+ depends_on 'pcre'
@rpavlik
rpavlik / fix_homebrew.rb
Created January 6, 2011 20:32 — forked from mxcl/install_homebrew.markdown
Fix permissions on /usr/local for Homebrew
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
diff --git a/SConstruct b/SConstruct
index 8326a89..2eb7ff0 100644
--- a/SConstruct
+++ b/SConstruct
@@ -126,7 +126,9 @@ def BuildDarwinEnvironment():
exp = re.compile('^(.*)\/Python\.framework.*$')
m = exp.search(distutils.sysconfig.get_config_var('prefix'))
- framework_opt = '-F' + m.group(1)
+ framework_opt = None
@rpavlik
rpavlik / install_ppc_homebrew.rb
Created June 2, 2011 15:32 — forked from mxcl/install_homebrew.markdown
Installs PowerPC fork of Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
#
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
#
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
# versions of OS X. I cannot verify that for sure, and it was tested on
@rpavlik
rpavlik / error message
Created October 6, 2011 16:27
cmake 2.8.4 in msys/mingw32
[ 7%] Built target gencheck
[ 7%] Generating gtype-desc.c, gtype-desc.h
warning: structure `VEC_cp_token_position_heap' used but not defined
warning: structure `c_arg_info' used but not defined
warning: structure `c_switch' used but not defined
warning: structure `et_node' used but not defined
warning: structure `loop' used but not defined
warning: structure `ipa_reference_vars_info_d' used but not defined
warning: structure `reg_info_def' used but not defined
warning: structure `value_set' used but not defined
@rpavlik
rpavlik / eigen_cdash.bat
Created November 8, 2011 17:58
Batch file for Eigen dashboard build on windows
@echo off
rem parameter 1: 32 or 64 to choose the desired build type
rem parameter 2: should be something like
rem "-DEIGEN_TEST_NOQT=ON -DEIGEN_TEST_OPENMP=ON -DEIGEN_DEFAULT_TO_ROW_MAJOR=ON"
rem NOTE: this parameter must be given with paranthesis
rem IMPORTANT: please adapt the following variable
set ARCH=x86
@rpavlik
rpavlik / mtclasses.lua
Created December 7, 2011 19:08
Quickie example for object-style programming Lua
--See http://www.lua.org/pil/16.html and http://www.lua.org/pil/16.1.html for more information
--Table for all "methods" shared between "objects"
local objMTindex = {}
--method called "greet"
function objMTindex:greet()
print("Hello from ", self, "aka", self.aka)
self.greeted = true
end
@rpavlik
rpavlik / portbranch.sh
Created January 11, 2012 20:25
Script for moving branches from one git-svn mirror to a new one
#!/bin/bash
# Call like ./portbranch official-upstream/3.0 my-3.0-fixes
# Original Author:
# 2012 Ryan Pavlik <[email protected]> <[email protected]>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2012.
# Distributed under the Boost Software License, Version 1.0.