brew create https://github.com/bazelbuild/bazel/archive/0.2.0.tar.gz --no-fetch
This will create formula file in /usr/local/Library/Formula/<formula_name>.rb
import rosbag | |
import rospy | |
import s3fs | |
fs = s3fs.S3FileSystem(key="<access_key>", secret="<secret_key>") | |
with fs.open('<bag>/<key>', 'rb') as f: | |
print('opened file') | |
bag = rosbag.Bag(f, mode='r', allow_unindexed=True, skip_index=True) | |
print('opened bag') | |
print('version: ', bag.version) |
Use https://github.com/settings/tokens/new
npm install pwmckenna/node-travis-encrypt -g
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.
class classmethod(object): | |
def __init__(self, func): | |
self.func = func | |
def __get__(self, instance, klass): | |
if klass is None: | |
klass = type(instance) | |
def newfunc(*args, **kwargs): | |
return self.func(klass, *args, **kwargs) |
using System; | |
using System.Collections.Generic; | |
namespace TwitterTest | |
{ | |
public class Solver | |
{ | |
private readonly int[] _walls; |
var Animal = (function() { | |
var heartRate; //private variable available in prototype functions | |
function Animal() { | |
heartRate = 90; | |
console.log('heart rate: ' + heartRate); | |
}; | |
Animal.prototype = { | |
constructor: Animal, | |
doDance: function() { | |
heartRate = 120; |