// jQuery
$(document).ready(function() {
// code
})
/** | |
* Simple localStorage with Cookie Fallback | |
* v.1.0.0 | |
* | |
* USAGE: | |
* ---------------------------------------- | |
* Set New / Modify: | |
* store('my_key', 'some_value'); | |
* | |
* Retrieve: |
# This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
# Http Server | |
$http = [System.Net.HttpListener]::new() | |
# Hostname and port to listen on | |
$http.Prefixes.Add("http://localhost:8080/") | |
# Start the Http Server |
(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.
First, download driver.
http://www.nvidia.com/download/driverResults.aspx/82252/en-us
To be able to install your nvidia driver you have to remove your previous video driver with this code in a terminal window:
Why would you want to do this? Because you often don't need more. It's nice to not have to think about your "router" as this big special thing.
Instead, with this approch, your app's current pathname
is just another piece of state, just like anything else.
This also means that when doing server-side rendering of a redux app, you can just do:
var app = require('your/redux/app')
var React = require('react')
/// @usage document.querySelectorAll('body'); | |
/// @returns array of matched elements from document and his IFRAMEs (CORS) | |
document.querySelectorAll = function(){ | |
var result = [].slice.call( HTMLDocument.prototype.querySelectorAll.apply(document, arguments ) ); | |
for(var i=0; i< frames.length; i++){ | |
try { | |
var doc = frames[i].document; | |
result = result.concat( [].slice.call( doc.querySelectorAll.apply(doc, arguments) ) ); | |
} catch(e){} | |
} |
/* | |
// ------------ Usage: ------------- | |
// ================================= | |
var container = document.querySelector('body'); | |
var html = "<h1>Timestamp <script>document.write( Date.now() );</script></h1>"; | |
function logFrameEvent(frame, eventName){ | |
console.log( |
#! /bin/zsh --no-rcs --err-exit | |
export PATH=node_modules/.bin:$PATH | |
alias -g i=install | |
if (($+commands[pnpm])) then | |
local p=p | |
alias pnpm=npm npx=pnpx | |
# FIXME https://github.com/pnpm/pnpm/issues/1360 | |
npm config get -g global-dir | read |