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
diff --git a/src/net/textproto/reader.go b/src/net/textproto/reader.go | |
index a00fd2395f..9f82186c62 100644 | |
--- a/src/net/textproto/reader.go | |
+++ b/src/net/textproto/reader.go | |
@@ -10,6 +10,7 @@ import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
+ "log" | |
"strconv" |
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
#!/bin/bash | |
# Assuming ./tools/tools.go, the following will give you a list of your tools: | |
# | |
# go list -f '{{ join .Imports "\n" }}' -tags tools ./tools | |
# | |
# No need for the likes of grep, awk, sed, cut, etc. | |
while read -r i; do | |
echo "## go install ${i}" |
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 SwiftyJSON | |
public extension JSON { | |
// Compatiblility shim for updating to SwiftyJSON v4.0.0 | |
// See changes introduced by: https://github.com/SwiftyJSON/SwiftyJSON/pull/833 | |
init(data: Data) { | |
do { | |
try self.init(data: data, options: []) | |
} catch { | |
self.init(jsonObject: NSNull()) |
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
--- a/Atom.app/Contents/Resources/app/src/workspace-view.js | |
+++ b/Atom.app/Contents/Resources/app/src/workspace-view.js | |
@@ -153,7 +153,37 @@ | |
this.command('application:show-settings', function() { | |
return ipc.sendChannel('command', 'application:show-settings'); | |
}); | |
+ var quitDoubleTapTimeout = null | |
+ function showConfirmQuitMsg() { | |
+ $('<div>') | |
+ .attr({ |
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
--- a/Atom.app/Contents/Resources/app/src/cursor-view.js | |
+++ b/Atom.app/Contents/Resources/app/src/cursor-view.js | |
@@ -19,7 +19,12 @@ | |
"class": 'cursor idle' | |
}, (function(_this) { | |
return function() { | |
- return _this.raw(' '); | |
+ return _this.div({ | |
+ outlet: 'cursorValue', | |
+ 'style': 'visibility:hidden;' |
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
<!doctype html> | |
<script> | |
function isObject(o) { | |
return typeof o === 'object'; | |
} | |
function isFunction(o) { | |
return typeof o === 'function'; | |
} |