(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.
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| const I = x => x; | |
| const K = x => y => x; | |
| const A = f => x => f(x); | |
| const T = x => f => f(x); | |
| const W = f => x => f(x)(x); | |
| const C = f => y => x => f(x)(y); | |
| const B = f => g => x => f(g(x)); | |
| const S = f => g => x => f(x)(g(x)); | |
| const P = f => g => x => y => f(g(x))(g(y)); | |
| const Y = f => (g => g(g))(g => f(x => g(g)(x))); |
| #!/usr/bin/env zsh | |
| git show-branch -a \ | |
| | grep '\*' \ | |
| | grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| | head -n1 \ | |
| | sed 's/.*\[\(.*\)\].*/\1/' \ | |
| | sed 's/[\^~].*//' | |
| # How it works: |
| const jsonPretty = obj => JSON.stringify(obj, null, 2); |
(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.
| // ==UserScript== | |
| // @name ContinueOver10k | |
| // @namespace https://gist.github.com/vincentsimard/7a565fd253d18896e5b0507d73e416d8 | |
| // @version 0.1 | |
| // @description After 10000 puzzles completed, lichess prevent you from solving anymore. | |
| // This script changes the continue button so it sends you to the next puzzle | |
| // @author Vincent Simard | |
| // @match https://en.lichess.org/training/* | |
| // @grant none | |
| // ==/UserScript== |
| #!/usr/bin/env node | |
| 'use strict'; | |
| var nconf = require('nconf'); | |
| var colors = require('colors'); | |
| var client = require('./src/Client.js'); | |
| var cli = require('./src/CLI.js'); | |
| var handlers = require('./src/EventHandlers.js'); |
| // ==UserScript== | |
| // @id @https://gist.github.com/vincentsimard/baf8d8ee6bcc5ca929f3/ | |
| // @name Remove slow/clear messages from betterttv | |
| // @namespace https://gist.github.com/vincentsimard/ | |
| // @description | |
| // @author vincentsimard | |
| // @copyright 2015+, vincentsimard | |
| // @license WTFPL | |
| // @downloadURL https://gist.github.com/vincentsimard/baf8d8ee6bcc5ca929f3/raw/ | |
| // @updateURL https://gist.github.com/vincentsimard/baf8d8ee6bcc5ca929f3/raw/ |
| <link rel="import" href="../paper-tabs/paper-tabs.html"> | |
| <link rel="import" href="../paper-tabs/paper-tab.html"> | |
| <link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
| <link rel="import" href="../paper-input/paper-input.html"> | |
| <link rel="import" href="../core-icons/core-icons.html"> |
| data:text/html, <html contenteditable> |