gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; acceleration_enabled = {acceleration_enabled} | |
; acceleration_infill = {acceleration_infill} | |
; acceleration_ironing = {acceleration_ironing} | |
; acceleration_layer_0 = {acceleration_layer_0} | |
; acceleration_prime_tower = {acceleration_prime_tower} | |
; acceleration_print = {acceleration_print} | |
; acceleration_print_layer_0 = {acceleration_print_layer_0} | |
; acceleration_roofing = {acceleration_roofing} | |
; acceleration_skirt_brim = {acceleration_skirt_brim} | |
; acceleration_support = {acceleration_support} |
This section describes the conventions used here to describe type signatures.
A [T]
is an array-like value (only ever used read-only in this API), i.e., one with an integer length
and whose indexed properties from 0 to length - 1
are of type T
.
A type T?
should be read as T | undefined
-- that is, an optional value that may be undefined
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example of using an angular provider to build an api service. | |
* @author Jeremy Elbourn (@jelbourn) | |
*/ | |
/** Namespace for the application. */ | |
var app = {}; | |
/******************************************************************************/ |
Use case: Travis CLI. One command invokes one or more sequential HTTP requests.
Note that startup time and the first request are very significant for a command line tool like this.
Clone the repo if you want to follow along.
Note: numbers might be due to how libraries are used (via faraday)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2008 Apple Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright | |
* notice, this list of conditions and the following disclaimer in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TinyIoCDemo | |
{ | |
// This is the interface for my aspect - the dependency for my classes. | |
public interface IAspectDependency | |
{ | |
string GetGreeting(); | |
} | |
// And here is an implementation. | |
public class GreetingAspect : IAspectDependency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'uri' | |
def download(url) | |
Thread.new do | |
thread = Thread.current | |
body = thread[:body] = [] | |
url = URI.parse url | |
Net::HTTP.new(url.host, url.port).request_get(url.path) do |response| |