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
# Install Docker: | |
sudo yum update | |
sudo yum search docker | |
sudo yum info docker | |
sudo yum install docker | |
# Start the docker daemon: | |
sudo systemctl start docker | |
# Check Docker’s status: |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; map CMD to CTRL because I am on a Windows VM. | |
LWin::LCtrl | |
+![:: | |
{ |
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
func ToAkamai(url string) string { | |
client := &http.Client{ | |
CheckRedirect: func(req *http.Request, via []*http.Request) error { | |
return http.ErrUseLastResponse | |
}} | |
resp, err := client.Get(url) | |
if err != nil { | |
return "" |
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
/* | |
* \ | |
* \\, | |
* \\\,^,.,,. JavaScript: from Zero to Hero | |
* ,;7~((\))`;;,, <zerotoherojs.com> | |
* ,(@') ;)`))\;;', an extraordinary course to learn JavaScript | |
* ) . ),(( ))\;, and related technologies | |
* /;`,,/7),)) )) )\,, | |
* (& )` (,((,((;( ))\, | |
* |
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
const workIt = () => "work it"; | |
const makeIt = () => "make it"; | |
const doIt = () => "do it"; | |
const makesUs = () => "makes us"; | |
function* stepper() { | |
yield "harder"; | |
yield "better"; | |
yield "faster"; | |
yield "stronger"; |
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
English Study: | |
th sound: | |
think about this thing that thing and those things | |
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
latentflip.com/loupe/?code=c3R1ZmYgPSBbJ2xvcmVtJywgJ2lwc3VtJywgJ2RvbGFyJywgJ3NpdCcsICdhaG1ldCddOwoKCm5ld1N0dWZmID0gc3R1ZmYubWFwKCh3aGF0KSA9PiB7CiAgIHJldHVybiB3aGF0ICsgJyAnICsgJ015IG1hbiEnOyAKfSk7Cgpjb25zb2xlLmxvZyhuZXdTdHVmZik7!!!PGJ1dHRvbj5DbGljayBtZSE8L2J1dHRvbj4%3D |
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
/* | |
* | |
*/ | |
(function closure() { | |
const courseOutline = [ | |
{ | |
title: 'Introduction', | |
lessons: [ | |
{ title: 'About “JavaScript: from Zero to Hero”' }, |
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
const os = require('os'); | |
// for lo-dashers: | |
// _(os.networkInterfaces()).values().flatten().where({ family: 'IPv4', internal: false }).pluck('address'); | |
// should give a similar output. | |
// | |
// or for burrito-lovers: | |
// pluck(query(flatten(values(os.networkInterfaces())))({family: 'IPv4', internal: false}))('address'); | |
// | |
// or for ramda-lovers: |
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
const rafraf = (callback) => { | |
if (!window.requestAnimationFrame) {return null;} | |
return window.requestAnimationFrame(() => | |
window.requestAnimationFrame(callback) | |
); | |
}; |