(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.
if ($request_uri = /) { | |
set $test A; | |
} | |
if ($host ~* teambox.com) { | |
set $test "${test}B"; | |
} | |
if ($http_cookie !~* "auth_token") { | |
set $test "${test}C"; |
/* ========================================================== | |
* | |
* Log on a remote server most of the errors in the browser | |
* | |
* @author Chris Cinelli | |
* | |
* Depends on: | |
* stacktrace.js - https://github.com/eriwen/javascript-stacktrace | |
* jsonStringify.js - http://www.thomasfrank.se/json_stringify_revisited.html | |
* |
<!-- Highlight syntax for Mou.app, insert at the bottom of the markdown document --> | |
<script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script> | |
<link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/github.min.css"> | |
<script> | |
hljs.initHighlightingOnLoad(); | |
</script> |
void Main() | |
{ | |
// 初始化一个context | |
var cxt = new Context(); | |
cxt.StepModel1 = new StepModel1{ Name = "foo1" }; | |
cxt.StepModel2 = new StepModel2{ Name = "foo2" }; | |
// 从context一个方法的内部的集合中取出一个model | |
var model1 = cxt.GetStepModel(1); | |
// 试着更新它 |
// 修改前报异常。Entity中缺少新增的字段A,但是返回的异常是一个类型转换相关的 | |
short minSecId = queryNoCached.Min(prc => prc.CacheHour); | |
// 修改后, 运行时容忍了Entity中缺少了新增的字段 | |
short minSecId = queryNoCached.Min(prc => (short?)prc.CacheHour) ?? 0; |
D/CordovaActivity(18223): onMessage(onPageStarted,file:///#!/sites) | |
D/CordovaLog(18223): file:///#!/sites: Line 1 : Uncaught ReferenceError: start is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 2 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 3 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 4 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 5 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 6 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 7 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 8 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 9 : Uncaught ReferenceError: addRow is not defined |
(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.
Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.
Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
#!/bin/bash | |
DB=$1 | |
COLLECTIONS=$(mongo localhost:27017/$DB --quiet --eval "db.getCollectionNames()" | sed 's/,/ /g') | |
for collection in $COLLECTIONS; do | |
echo "Exporting $DB/$collection ..." | |
mongoexport -d newtickettoolDB -c $collection -o $collection.json | |
done |