- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Xcode Command Line Tools
-
xcode-select --install
-
package protoencoder | |
import ( | |
"github.com/Shopify/sarama" | |
"google.golang.org/protobuf/proto" | |
) | |
type encoder struct { | |
msg proto.Message | |
} |
package bitly | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
const BaseURL = "https://api-ssl.bitly.com/v4" |
{ | |
"heapster-2016.09.23": { | |
"aliases": { | |
"heapster-cpu-2016.09.23": { }, | |
"heapster-events-2016.09.23": { }, | |
"heapster-filesystem-2016.09.23": { }, | |
"heapster-general-2016.09.23": { }, | |
"heapster-memory-2016.09.23": { }, | |
"heapster-network-2016.09.23": { } | |
}, |
ackage main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
) | |
func hello(w http.ResponseWriter, r *http.Request) { | |
io.WriteString(w, "Hello world!") |
package leveledlogger | |
import ( | |
"github.com/go-kit/kit/log" | |
) | |
type LogLevel int | |
const ( | |
Off LogLevel = iota |
#!/bin/bash | |
res_organize() { | |
res_dir=$1 | |
res_suffix=$2 | |
if [ ! -d "./${res_dir}" ]; then | |
mkdir ./${res_dir} | |
fi; |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: AlmogBaku | |
* Date: 04/12/2015 | |
* Time: 3:13 PM | |
*/ | |
namespace Rimoto\ApiBundle\Security; |
package net.rimoto.android.utils; | |
import android.support.v4.view.ViewPager; | |
import com.viewpagerindicator.PageIndicator; | |
import java.util.ArrayList; | |
/** | |
* Indicator Aggregator | |
*/ | |
public class IndicatorAggregator implements PageIndicator { |