This file contains hidden or 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
/tmp/a$ gulp karma | |
[16:05:10] Using gulpfile /tmp/a/gulpfile.js | |
[16:05:10] Starting 'eslint'... | |
[16:05:10] Starting 'jsonlint'... | |
[16:05:11] Finished 'jsonlint' after 294 ms | |
[16:05:11] Finished 'eslint' after 450 ms | |
[16:05:11] Starting 'linting'... | |
[16:05:11] Finished 'linting' after 12 μs | |
[16:05:11] Starting 'karma'... | |
29 12 2015 16:05:11.367:WARN [watcher]: Pattern "/tmp/a/app/**/templates/*.html" does not match any file. |
This file contains hidden or 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 -r example2/.yo-rc.json generator-m-ionic-demo/.yo-rc.json | |
4,6c4,6 | |
< "appName": "example2", | |
< "appId": "com.company.example2", | |
< "ionicCss": false, | |
--- | |
> "appModule": "myProject", | |
> "appName": "My Project", | |
> "appId": "com.company.project", | |
12a13 |
This file contains hidden or 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
mongoose.connect = MongooseThenable { | |
connections: | |
[ NativeConnection { | |
base: [Object], | |
collections: {}, | |
models: {}, | |
config: [Object], | |
replica: false, | |
hosts: null, | |
host: '192.168.2.2', |
This file contains hidden or 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
"use strict"; | |
var http_1 = require('http'); | |
function httpF(method) { | |
return function (options, body_or_cb, cb) { | |
if (!cb) { | |
cb = body_or_cb; | |
body_or_cb = null; | |
} | |
options['method'] = method; | |
if (body_or_cb) |
This file contains hidden or 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
var http = require('http'); | |
function httpPOST(options, body, cb) { | |
const req = http.request(options, function (res) { | |
if (!res) | |
return cb(res); | |
else if ((res.statusCode / 100 | 0) > 3) | |
return cb(res); | |
return cb(null, res); |
This file contains hidden or 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
tttttt$ ls | |
CMakeLists.txt conanfile.txt main.cpp | |
tttttt$ mkdir build && cd $_ | |
tttttt/build$ conan install .. | |
RapidJSON/1.0.2@SamuelMarks/testing: Not found, looking in remotes... | |
RapidJSON/1.0.2@SamuelMarks/testing: Trying with 'conan.io'... | |
Downloading conan_export.tgz | |
[==================================================] | |
Downloading conanfile.py | |
[==================================================] |
This file contains hidden or 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/sh | |
curl -s https://nodejs.org/dist/latest/ | sed -n 's:.*<a href=\".*\">node-v\(.*\).pkg</a>.*:\1:p' |
This file contains hidden or 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/tutorials/image/cifar10/cifar10.py b/tutorials/image/cifar10/cifar10.py | |
index d99ffb9..4edcf68 100644 | |
--- a/tutorials/image/cifar10/cifar10.py | |
+++ b/tutorials/image/cifar10/cifar10.py | |
@@ -90,8 +90,8 @@ def _activation_summary(x): | |
# Remove 'tower_[0-9]/' from the name in case this is a multi-GPU training | |
# session. This helps the clarity of presentation on tensorboard. | |
tensor_name = re.sub('%s_[0-9]*/' % TOWER_NAME, '', x.op.name) | |
- tf.contrib.deprecated.histogram_summary(tensor_name + '/activations', x) | |
- tf.contrib.deprecated.scalar_summary(tensor_name + '/sparsity', |
This file contains hidden or 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
@Injectable() | |
class JWTInterceptor implements HttpInterceptor { | |
constructor(private router: Router) {} | |
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
return next.handle(req).map((event: HttpEvent<any>) => { | |
if (event instanceof HttpResponse) { | |
// do stuff with response if you want |
This file contains hidden or 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
digraph { | |
bgcolor=transparent; | |
splines=polyline; | |
phone0[label="Smartphone 0"]; | |
phone1[label="Smartphone 1"]; | |
phone2[label="Smartphone 2"]; | |
laptop0[label="Laptop 0"]; | |
laptop0[label="Laptop 1"]; | |
laptop0[label="Laptop 2"]; | |
server0[label="Server (DB, API, nginx, static files)", shape=cylinder] |