Skip to content

Instantly share code, notes, and snippets.

Clean code structure in golang

by Resotto

  • Good example of Go with Clean Architecture.
  • All kinds of Gophers (newbie to professional).

Package Structure

@eranbes
eranbes / 01-filternet-top200k-26-03-2016.csv
Created October 4, 2016 22:49 — forked from alibo/01-filternet-top200k-26-03-2016.csv
State of Alexa Top 200K global sites in Iran [Censorship] [26-03-2016] #filternet
Rank Site SNI HTTP DNS
1 google.com open open open
2 youtube.com blocked blocked blocked
3 facebook.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open
@eranbes
eranbes / PerfTest.js
Created February 8, 2016 21:35 — forked from rileybracken/PerfTest.js
React Native Animation Performance Test
'use strict';
import React, {
Component,
Animated,
Easing,
Dimensions,
StyleSheet
} from 'react-native';
@ide ngrok ready.
/Applications/Exponent XDE.app/Contents/Resources/app/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193
throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
^
ReferenceError: Unknown plugin "transform-decorators-legacy" specified in "/Applications/Exponent XDE.app/Contents/Resources/app/.babelrc" at 0, attempted to resolve relative to "/Applications/Exponent XDE.app/Contents/Resources/app"
at /Applications/Exponent XDE.app/Contents/Resources/app/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193:17
at Array.map (native)
at Function.normalisePlugins (/Applications/Exponent XDE.app/Contents/Resources/app/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:173:20)
at OptionManager.mergeOptions (/Applications/Exponent XDE.app/Contents/Resources/app/template/node_modules/babel-core/lib/transformation/file/options/option-manager.j
@eranbes
eranbes / pr.md
Created December 11, 2015 15:57 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: