<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>replaceRefactorSaga</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>importantTopics-kgashok</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> |
<h2 id="table-of-contents">Table of Contents</h2> | |
<p><div class="toc"> | |
<ul> | |
<li><ul> | |
<li><a href="#table-of-contents">Table of Contents</a><ul> | |
<li><a href="#why-recursion-pros-and-cons">Why Recursion? - Pros and Cons</a><ul> | |
<li><a href="#quiz-1">Quiz 1</a><ul> | |
<li><a href="#httpjmphalfofreckg">http://j.mp/halfOfRecKG</a></li> | |
</ul> |
Type crontab -l
to see your cron jobs. Type crontab -e
to edit them. You have to use Vim apparently.
Add a line like this:
0,30 * * * * /Users/YOURNAME/Documents/scripts/stretch.sh
That is on every 0th and 30th minute of the hour. Make sure all the separators in there are tabs!
// ### Replace words in document | |
// | |
// Update all instances of `fromWord` to `toWord` within the text | |
// in the current document. | |
// | |
function replaceWordsInDocument(fromWord, toWord) { | |
if (/\s/.test(fromWord)) { | |
throw new Error('You must enter a single word without whitespace'); | |
} |
##Leetcode-Reverse Linked List II##
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note: Given m, n satisfy the following condition:
// Ernest Hemingway | |
function fibonacci(size) { | |
var first = 0, second = 1, next, count = 2, result = [first, second]; | |
if(size < 2) | |
return "the request was made but it was not good" | |
while(count++ < size) { |
var serialAsyncMap = function () { | |
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(collection, fn) { | |
var result, _iterator, _isArray, _i, _ref2, item; | |
return regeneratorRuntime.wrap(function _callee$(_context) { | |
while (1) { | |
switch (_context.prev = _context.next) { | |
case 0: | |
result = []; | |
_iterator = collection, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator](); |
tl;dr - In ~20 seconds, use http://j.mp/cdPython to launch a CyberDojo programming environment for deliberate team practice!
Also click the following link if you want a "Bookmarklet for Custom Start Points".
5 steps to setup a team dojo session to practice the FizzBuzz exercise in Python using the py.test framework
In 4.5 easy steps, you can launch your own CyberDojo session within ~20 seconds. Here's how: