Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
from boto.s3.connection import S3Connection | |
connection = S3Connection('aws access key', 'aws secret key') | |
buckets = connection.get_all_buckets() | |
for bucket in buckets: | |
for key in bucket.list(): | |
print('%s' % key) | |
require 'minitest/autorun' | |
class ProcAndLambdaTest < Minitest::Test | |
def setup | |
@arr = [ 1, 2, 3 ] | |
end | |
def test_basic_return_behavior | |
# NOTE: Defining methods like this actually hoists them into the instance. I'm doing this purely | |
# for organization of the tests. |
<script type="text/javascript"> | |
var timer; | |
var heartbeat; | |
var lastInterval; | |
function clearTimers() { | |
clearTimeout(timer); | |
clearTimeout(heartbeat); | |
} |
<script type="text/javascript"> | |
var custom = "myapp://custom_url"; | |
var alt = "http://mywebsite.com/alternate/content"; | |
var g_intent = "intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end"; | |
var timer; | |
var heartbeat; | |
var iframe_timer; | |
function clearTimers() { | |
clearTimeout(timer); |
import axios from 'axios' | |
import fetch from './fetch' | |
export default { | |
async fetchPage ({ dispatch }, { query, headers }, ref) { | |
// every time this action is dispatched, make the request using the fetch helper | |
// which ensures we cancel previous requests and only mutate state after the latest one | |
await fetch(ref, { | |
request: cancelToken => { | |
return Promise.all( |
import React, { Component } from 'react' | |
import { | |
BrowserRouter as Router, | |
Route | |
} from 'react-router-dom' | |
import Auth from './Auth' | |
/* here mobx stuff */ | |
class App extends Component { |
const path = require('path'); | |
const { STATUS_CODES } = require('http'); | |
exports.rewriteHandler = (evt, ctx, cb) => { | |
const { request } = evt.Records[0].cf; | |
const htmlExtRegex = /(.*)\.html?$/; | |
if (htmlExtRegex.test(request.uri)) { | |
const uri = request.uri.replace(htmlExtRegex, '$1'); | |
return cb(null, redirect(uri)); | |
} |
$ brew install imagemagick | |
# `convert` and `mogrify` provided by imagemagick | |
$ mogrify --version | |
Version: ImageMagick 7.0.7-3 Q16 x86_64 2017-09-18 http://www.imagemagick.org | |
Copyright: © 1999-2017 ImageMagick Studio LLC | |
License: http://www.imagemagick.org/script/license.php | |
Features: Cipher DPC HDRI Modules | |
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib | |
# "mogrify quite useful in converting icons to multilayered ICO format from SVG images. |
var _ = require("lodash"); | |
var R = require("ramda"); | |
var companies = [ | |
{ name: "tw", since: 1993 }, | |
{ name: "pucrs", since: 1930 }, | |
{ name: "tw br", since: 2009 } | |
]; | |
var r1 = _(companies).chain() |
Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git