create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
import Foundation | |
let json = """ | |
{ | |
"a": 1, | |
"b": 2, | |
"c": 3 | |
} | |
""".data(using: .utf8)! |
import Foundation | |
import SceneKit | |
let json = """ | |
{ | |
"position": [2.0, 5.0, 3.0], | |
"rotation": [0.0, 0.73, 0.0, 0.73] | |
} | |
""".data(using: .utf8)! |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl
. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool
The flags you have to supply may vary depending on which site you make a request to.
You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials
youtube-dl is a handy little command-line utility that, with the right command, automagically downloads videos from Youtube as well as other platforms such as Vimeo, Lynda.com, BBC, CNN etc..(Full list of supported websites)
Kindly proceed to youtube-dl's Github repo for detailed installation instructions for your respective OS
In case of an error, make sure you have Python 2.6, 2.7 or 3.2+ installed as youtube-dl needs it to run.
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
// When one has to conform to using Regex, ameliorate the nasties and qualify/quantify as many identifiers as you can :boom: :tada: | |
// E.g. Self-documenting version of an unmaintainable Regex string | |
// 1. Break it up into readable functions/vars with doc comments | |
// 2. Build up the parts back into the final result | |
// Win. :lion: :gem: | |
/* | |
* @Author : SLim | |
* @Date : 2018-06-30 13: 58: 47 | |
* @Last Modified time: 2018-06-30 15: 04: 36 | |
*/ | |
// Limited-use, specific problem. | |
// Showcases a workaround to cast namespace/module definition onto an "any" typed module (because using JavaScript node module require) | |
// For autocompletion usage, typing to speed up development. |