Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| /** | |
| * PDO SINGLETON CLASS, ADODB ENABLED | |
| * | |
| * @author Tony Landis | |
| * @link http://www.tonylandis.com | |
| * @license Use how you like it, just please don't remove or alter this PHPDoc | |
| */ | |
| class sdb { | |
| /** |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <!-- Raven.js Config --> | |
| <script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| // Ignore list based off: https://gist.github.com/1878283 | |
| var ravenOptions = { | |
| // Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion. | |
| // See: https://github.com/getsentry/raven-js/issues/73 | |
| ignoreErrors: [ | |
| // Random plugins/extensions | |
| 'top.GLOBALS', |
| # Encoding: UTF-8 | |
| require 'spec_helper' | |
| # Specs for initializers/patches.rb | |
| describe ActiveSupport::JSON::Encoding do | |
| it "should not break high bitrate utf-8 characters" do | |
| hash = { string: "𐒑" } | |
| json = ActiveSupport::JSON.encode(hash) |
| <?php | |
| /** | |
| * Super-simple script to convert a existing project to use namespaces | |
| * | |
| * @author Hans-Peter Buniat <[email protected]> | |
| * @copyright 2012 Hans-Peter Buniat <[email protected]> | |
| * @license http://opensource.org/licenses/BSD-3-Clause | |
| */ | |
| class namespaceRefactor { |
Use magit-ediff or 'e' on an unmerged item to resolve merge conflicts with ediff. Magit will set up an ediff with three buffers A, B and C. A and B are the original (conflicting) files, and C is the conflicted merge.
Use 'n'/'p' to move to the next/previous conflict, use 'a'/'b' to choose which changes (those in a A or B) should be the ones to keep in the merged file.
You can always just switch to buffer C and edit what the merged version should look like.
| #!/bin/sh | |
| # | |
| # Too many crusty old git branches? Run this to find likely candidates for deletion | |
| # It lists all the remote branches and sorts them by age. | |
| # | |
| # Folks at pivotal shared this with me | |
| # | |
| #$ . show-remote-branch-info.sh | |
| # 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill |
| # -*- coding: utf-8 -*- | |
| # a functional is a function that takes a function for its input | |
| def fact(factorial): | |
| def fn(n): | |
| if n == 0: return 1 | |
| else: | |
| return n * factorial(n - 1) | |
| return fn |
| #! /usr/bin/env python | |
| import fileinput | |
| import argparse | |
| from operator import itemgetter | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int) | |
| parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+') | |
| args = parser.parse_args() |