(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.
(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.
# | |
# Run git status after specified set of command | |
# | |
# @author Oleksandr Shybystyi oleksandr.shybystyi@gmail.com | |
# | |
# default list of git commands `git status` is running after | |
gitPreAutoStatusCommands=( | |
'add' | |
'rm' |
#!/bin/bash | |
#Start a docker container with environment variables for external port and IP | |
if [ -z $1 ] | |
then | |
echo pass in starting port | |
exit 1 | |
fi | |
START_PORT=$1 |
keymap = { | |
[1]="f13", | |
[2]="f14", | |
[3]="f15", | |
[4]="f16", | |
[5]="f17", | |
[6]="f18", | |
} | |
function OnEvent(event, gkey, family) |
<? | |
/* | |
URL : https://github.com/OldskoolOrion/normalize_to_utf8_chars | |
Function usable when normalizing input data, that has been mangled before, by : | |
1) Encoding Problem : Treating UTF-8 Bytes as Windows-1252 or ISO-8859-1 | |
2) Encoding Problem : Incorrect Double Mis-Conversion |
(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.
""" | |
This is the product of me spending a few minutes trying to | |
assess how much of my LastPass vault is potentially vulnerable | |
to the recent CloudFlare issue. | |
It's hacky, and probably broken in some way, but it's a start. | |
Gist comments with improvements very welcome. | |
""" |
Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. This is set on the server-side and there is nothing you can do from the client-side to change that setting, that is up to the server/API. There are some ways to get around it tho.
Sources : MDN - HTTP Access Control | Wiki - CORS
CORS is set server-side by supplying each request with additional headers which allow requests to be requested outside of the own domain, for example to your localhost
. This is primarily set by the header:
Access-Control-Allow-Origin
#!/usr/bin/env python3 | |
# pylint: disable=missing-docstring | |
# pylint: disable=invalid-name | |
# pylint: disable=wrong-import-position | |
# pylint: disable=import-outside-toplevel | |
# pylint: disable=logging-format-interpolation | |
"""Dotfiles Syncronization Script | |
This script allows to syncronize your dotfiles among different computers with |