>Hasty generalization is an informal fallacy of faulty generalization by reaching an inductive generalization based on insufficient evidence—essentially making a hasty conclusion without considering all of the variables. In statistics, it may involve basing broad conclusions regarding the statistics of a survey from a small sample group that fails to sufficiently represent an entire population. Its opposite fallacy is called slothful induction, or denying a reasonable conclusion of an inductive argument (e.g. "it was just a coincidence").
A service worker is a script that is run by your browser in the background, separate from a web page, opening the door to features which don't need a web page or user interaction. Rich offline experiences, periodic background syncs, push notifications— functionality that would normally require a native application—are coming to the web.
- SW are are just JS workers, so they can't access the DOM directly
- a SW can communicate w/ the pages it controls by responding to message sent via the
postMessageinterface - SW is a programmable network proxy, allowing you to conrol how network requests from your page are handled
- it runs only when needed, and terminiates when unneeded (cannot rely on global state)
- service workers make extense use of promises
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
| [ | |
| [:app "cmd-t" :workspace.show] | |
| [:app "cmd-shift-f" :searcher.show] | |
| [:app "cmd-shift-k" :clear-console] | |
| [:app "cmd-shift-s" :save-all] | |
| [:app "cmd-ctrl-f" :window.fullscreen] | |
| [:app "cmd-k" :toggle-console] | |
| [:app "tab" :focus-last-editor] | |
| [:workspace.focused "enter" :lt.plugins.workspace-nav/open-selection] |
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
| #!/usr/bin/env python | |
| import itertools | |
| import sys | |
| import time | |
| import threading | |
| class Spinner(object): | |
| spinner_cycle = itertools.cycle(['-', '/', '|', '\\']) |
The Lean Canvas is a version of the Business Model Canvas adapted by Ash Maurya specifically for startups. You can read more about it here.
|
Problem
Top 3 Problems |
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
| // if you are on Windows 10 you may need to start powershell as admin and run the folowing command | |
| // Set-ExecutionPolicy RemoteSigned (see https://technet.microsoft.com/library/hh847748.aspx) | |
| // then set back after you are done with | |
| // Set-ExecutionPolicy Undefined | |
| Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
| Get-AppxPackage *windowscamera* | Remove-AppxPackage | |
| Get-AppxPackage *officehub* | Remove-AppxPackage | |
| Get-AppxPackage *skypeapp* | Remove-AppxPackage | |
| Get-AppxPackage *zunemusic* | Remove-AppxPackage |
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 ws = require ("nodejs-websocket"); | |
| var myPort = 1337; | |
| function handleConnection (conn) { | |
| conn.on ("text", function (s) { | |
| var returnstring = s.toUpperCase () + "!!!"; | |
| console.log ("handleConnection: returning " + returnstring); | |
| conn.sendText (returnstring) | |
| }); | |
| } |
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/bash | |
| # The IP for the server you wish to ping (8.8.8.8 is a public Google DNS server) | |
| SERVER=8.8.8.8 | |
| # Only send two pings, sending output to /dev/null | |
| ping -c2 ${SERVER} > /dev/null | |
| # If the return code from ping ($?) is not 0 (meaning there was an error) | |
| if [ $? != 0 ] |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to:
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
| #!/usr/bin/env perl | |
| use feature qw{ say state signatures } ; | |
| use strict ; | |
| use warnings ; | |
| use utf8 ; | |
| use Data::Dumper ; | |
| my $numbers = [ 3 .. 11 ] ; |