I hereby claim:
- I am brimizer on github.
- I am brimizer (https://keybase.io/brimizer) on keybase.
- I have a public key whose fingerprint is 9794 98A3 975E 2816 1B51 ED73 C261 1987 1A53 037D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| """ | |
| Depends on GitPython | |
| pip install GitPython | |
| """ | |
| from git import Repo | |
| def get_current_branch_name(repo_path) | |
| """ | |
| Gets the name of the active Git branch as a string. |
| // Public domain. | |
| // Free to use. | |
| // Use like this: | |
| var world = "Hello, world!" | |
| let convertedRange = world.convertRange(0..<5) | |
| world.removeRange(convertedRange) | |
| // Converts a regular range (0..5) to a proper String.Index range. | |
| extension String { |
| /** | |
| * An easy way to NSLog a message with any color you'd like. | |
| * Requires XcodeColors, available here: https://github.com/robbiehanson/XcodeColors | |
| * MIT License | |
| * Created by Daniel Brim | |
| */ | |
| #define NSLogColor(color, args...) ExtendNSLogColor(color, __FILE__,__LINE__,__PRETTY_FUNCTION__,args); | |
| void NSLogColor(UIColor *color, const char *file, int lineNumber, const char *functionName, NSString *format, ...); |
| require 'sinatra' | |
| require 'fileutils' | |
| require 'json' | |
| post '/:filename' do | |
| content_type :json | |
| puts "Opening directory" | |
| dirname = File.expand_path("~/my_dir") |