- https://www.quora.com/What-is-the-best-Node-js-CMS-Why
- https://www.slant.co/topics/1847/~node-js-based-cms
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
#!/usr/bin/env sh | |
YTDL_UNIVERSAL_PATH="Python27/Scripts/youtube-dl" | |
help() { | |
echo "" | |
echo "playlist2mp3 - A small, useful youtube-dl wrapper." | |
echo "" | |
echo "Download a YouTube playlist and for each video," | |
echo "extract its audio stream & save it to an mp3 file." |
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
/* Helper function, required if jQuery is not available */ | |
var ajax = function ajax(method, url, callback) { | |
var xhr = !!window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"); | |
xhr.onreadystatechange = function() {4 == this.readyState && callback(xhr)}; | |
xhr.open(method, url, true); | |
xhr.send(); | |
}; | |
function do_something(coords) { | |
// Do something with the coords here |
# takes staged changes and 'stashes' them for later, and reverts to HEAD.
$ git stash
# creates new branch and switches to it, then takes the stashed changes and stages them in the new branch. fancy!
$ git stash branch new-branch-name
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
<ul class="items"> | |
<li><a href="#" data-str="rot" data-hl="de">rot</a></li> | |
<li><a href="#" data-str="gelb" data-hl="de">gelb</a></li> | |
<li><a href="#" data-str="and now in english" data-hl="en">and now in english</a></li> | |
</ul> | |
<script> | |
var Say = { | |
$audio: !1, | |
createAudioElem: function(e) { |
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
/** | |
* Get a tokenized(!) request URL for a Google Translate tts audio file; i.e.: | |
* https://translate.google.com/translate_tts?q=hello%20world&tl=en&tk=159027.275675 | |
* (URL shortened for better readability.) | |
* | |
* @author Stephan Schmitz <[email protected]> | |
* @copyright: Google Inc. | |
* @param urldecodedString {string} The string to be spoken in the audio file. | |
* @param hl {string} Optional two-letter country code for the output language. Default: English. | |
* @return {string} The fully-qualified request URL to the audio file (Content-type: audio/mpeg). |
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
tt_content.image.20.stdWrap.parseFunc.nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib { | |
width.unset = 1 | |
height.unset = 1 | |
border.unset = 1 | |
} | |
tt_content.textpic.20.stdWrap.parseFunc.nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib { | |
width.unset = 1 | |
height.unset = 1 | |
border.unset = 1 |
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
var requirejs, require, define; | |
(function(e) { | |
function h(e, t) { | |
return f.call(e, t) | |
} | |
function p(e, t) { | |
var n, r, i, s, o, a, f, l, h, p, d, v = t && t.split("/"), m = u.map, g = m && m["*"] || {}; | |
if (e && e.charAt(0) === ".") | |
if (t) { | |
v = v.slice(0, v.length - 1), |