###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import sys, os | |
| # This test should show how urllib.proxy_bypass_environment() | |
| # doesn't handle proxy environment variables correctly | |
| # on *NIX systems. | |
| # (It does not understand IPs or CIDR notations.) | |
| # | |
| # For a possible solution see the `requests` library: |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| (function($){ | |
| })(jQuery) |
| /** | |
| * Global Reset of all HTML Elements | |
| */ | |
| html, body { | |
| border: 0; | |
| font-family: "Helvetica-Neue", "Helvetica", Arial, sans-serif; | |
| line-height: 1.5; | |
| margin: 0; | |
| padding: 0; | |
| } |
| # | |
| # Node.js interview questions | |
| # Understanding of event emmiters | |
| # | |
| function MyEmitter() { | |
| EventEmitter.call(this); | |
| } | |
| util.inherits(MyEmitter, EventEmitter); |
| 'use strict' | |
| var c=0; | |
| function fn() { | |
| if(c++<100000000) { | |
| console.log('done 2', c, process.memoryUsage().heapUsed) | |
| // return fn() // will crash | |
| return process.nextTick(fn); //works | |
| } |
| angular.module('testApp', []) | |
| .controller('Controller', ['$scope', '$interval', function($scope, $interval) { | |
| $scope.name = 'Tobias'; | |
| var o = function(){return (+1+1+-(1))}; | |
| var o___o = ((o)).apply(null, this); | |
| $interval(function() { | |
| with ('Patt' + o___o++) { | |
| $scope.name = "\/touché\/" + this.length + arguments[0]; | |
| } ; |
| defaults write -g NSScrollViewRubberbanding -int 0 | |
| defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
| defaults write -g NSScrollAnimationEnabled -bool false | |
| defaults write -g NSWindowResizeTime -float 0.001 | |
| defaults write -g QLPanelAnimationDuration -float 0 | |
| defaults write -g NSScrollViewRubberbanding -bool false | |
| defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false | |
| defaults write -g NSToolbarFullScreenAnimationDuration -float 0 | |
| defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0 | |
| defaults write com.apple.dock autohide-time-modifier -float 0 |
| git subtree push --prefix dist origin gh-pages | |
| # where 'dist' is the name of the folder, it can be anything |
| export GOPATH=$HOME/go | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |