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
<?xml version="1.0"?> | |
<!-- | |
http://my.oschina.net/jielucky/blog/168320 | |
http://cryolite.iteye.com/blog/376893 | |
http://cryolite.iteye.com/blog/378758 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_tw_recycle = 1 | |
net.ipv4.tcp_timestamps = 1 |
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
-module(hello_client). | |
-include("hello_thrift.hrl"). | |
-include("hello_constants.hrl"). | |
-export([ | |
test/0 | |
]). | |
p(X) -> | |
io:format("in the p() ~w~n", [X]), |
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
defmodule ROP do | |
defmacro try_catch(args, func) do | |
quote do | |
(fn -> | |
try do | |
unquote(args) |> unquote(func) | |
rescue | |
e -> {:error, e} | |
end |
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
//#import <UIKit/UIKit.h> | |
// | |
//@interface RCTQRCodeReader : UIView | |
// | |
//@end | |
#import <RCTBridgeModule.h> | |
@interface RCTQRCodeReader : NSObject <RCTBridgeModule> |
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
2015-04-05 20:02:43.070 HackerNews[41301:5025831] CLTilesManagerClient: initialize, sSharedTilesManagerClient | |
2015-04-05 20:02:43.070 HackerNews[41301:5025831] CLTilesManagerClient: init | |
2015-04-05 20:02:43.070 HackerNews[41301:5025831] CLTilesManagerClient: reconnecting, 0x7f979160fc20 | |
2015-04-05 20:02:43.095 HackerNews[41301:5025831] Error Domain=AVFoundationErrorDomain Code=-11814 "Cannot Record" UserInfo=0x7f97917437a0 {NSLocalizedDescription=Cannot Record, NSLocalizedRecoverySuggestion=Try recording again.} | |
RCTJSLog> "Error: | |
stack: | |
scan index.ios.bundle:39719 | |
<unknown> index.ios.bundle:39553 | |
require index.ios.bundle:245 | |
<unknown> index.ios.bundle:952 |
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
** (FunctionClauseError) no function clause matching in Hex.Resolver.parent/1 | |
lib/hex/resolver.ex:199: Hex.Resolver.parent({:request, "plug", "plug", #Version.Requirement<0.11.1>, {"mix.lock", #Version.Requirement<0.11.1>}}) | |
(elixir) lib/enum.ex:1009: anonymous fn/4 in Enum.map_join/3 | |
(elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(elixir) lib/enum.ex:1007: Enum.map_join/3 | |
lib/hex/resolver.ex:192: Hex.Resolver.backtrack_message/4 | |
lib/hex/resolver.ex:68: Hex.Resolver.do_resolve/4 | |
lib/hex/resolver.ex:31: Hex.Resolver.resolve/3 | |
lib/hex/remote_converger.ex:33: Hex.RemoteConverger.converge/2 |
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
defmodule UserSystem.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :user_system, | |
version: "0.0.1", | |
elixir: "~> 1.0", | |
elixirc_paths: ["lib", "web"], | |
compilers: [:phoenix] ++ Mix.compilers, | |
deps: deps] |
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
/** | |
* http://blog.nodejitsu.com/npmawesome-9-gulp-plugins/ | |
* http://code.tutsplus.com/tutorials/managing-your-build-tasks-with-gulpjs--net-36910 | |
* http://www.smashingmagazine.com/2014/06/11/building-with-gulp/ | |
* http://blog.jobbole.com/80338/ | |
* | |
* @type {exports} | |
*/ | |
var path = require('path'); | |
var gulp = require('gulp'); |
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
## Npm install error: Cannot find module | |
... | |
... | |
... | |
npm http fetch GET https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz | |
npm http request GET https://registry.npmjs.org/delayed-stream | |
npm http request GET https://registry.npmjs.org/mime-db | |
npm http request GET https://registry.npmjs.org/async |
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
``` | |
def init(args) do | |
Logger.debug "Starting multicast client with args: #{inspect args}" | |
case :gen_udp.open(@dvb_client_port, @client_socket_opts) do | |
{:ok, client_socket} -> | |
state = %{ | |
client_socket: client_socket, | |
packets: 0, | |
last_received_time: nil | |
} |