This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
echo sha, contributor, date, message > log.csv | |
git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv |
#!/usr/bin/env zsh #adding this to force silly gist highlighting. REMOVE THIS | |
# ZSH standalone npm install autocompletion. Add this to ~/.zshrc file. | |
_npm_install_completion() { | |
local si=$IFS | |
# if 'install' or 'i ' is one of the subcommands, then... | |
if [[ ${words} =~ 'install' ]] || [[ ${words} =~ 'i ' ]]; then | |
# add the result of `ls ~/.npm` (npm cache) as completion options |
// retries up to 3 times while exponentially backing off with each retry | |
.retryWhen(errors -> | |
errors | |
.zipWith( | |
Observable.range(1, MAX_RETRIES), (n, i) -> i | |
) | |
.flatMap( | |
retryCount -> Observable.timer((long) Math.pow(4, retryCount), TimeUnit.SECONDS) | |
) | |
) |
// | |
// UILabel+JumpingDots.swift | |
// JumpingDots | |
// | |
// Copyright (c) 2016 Arkadiusz Holko. All rights reserved. | |
// | |
import UIKit | |
import ObjectiveC |
#!/bin/sh | |
# Example usage | |
# cd into directory that has @3x images | |
# ./whatever-you-name-this.sh | |
# Remember to chmod +x the script | |
resize () { | |
ls *@3x.png | awk '{print("convert "$1" -filter box -resize '$1' "$1)}' | sed 's/@3x/'$2'/2' | /bin/sh | |
} |
// | |
// ViewController.m | |
// PopoverPresentationControllerExample | |
// | |
// Created by Bryan Irace on 8/8/14. | |
// Copyright (c) 2014 Bryan Irace. All rights reserved. | |
// | |
#import "CustomCompactPresentationController.h" | |
#import "ViewController.h" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
########################################################################### | |
# Choose your ffmpeg version and your currently-installed iOS SDK version: | |
# | |
VERSION="2.0.2" | |
SDKVERSION="7.0" | |
ARCHS="armv7 armv7s i386" | |
# | |
# |
#!/usr/bin/env ruby | |
# Write git commit messages to a log file | |
# | |
# Lincoln A. Mullen | [email protected] | http://lincolnmullen.com | |
# MIT License <http://lmullen.mit-license.org/> | |
# | |
# You will have to install the git gem for this to work: | |
# gem install git | |
# |