- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
// CSS Color Names | |
// Compiled by @bobspace. | |
// | |
// A javascript object containing all of the color names listed in the CSS Spec. | |
// This used to be a big array, but the hex values are useful too, so now it's an object. | |
// If you need the names as an array use Object.keys, but you already knew that! | |
// | |
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
// Use it as you please, 'cuz you can't, like, own a color, man. |
//Writing and reading XML files with Qt - qxmlstreamwriter and qxmlstreamreader supported classes | |
void MyXMLClass::SaveXMLFile() | |
{ | |
QString filename = QFileDialog::getSaveFileName(this, | |
tr("Save Xml"), ".", | |
tr("Xml files (*.xml)")); | |
//infix operator-precedence parser | |
//also supports a d operator - a dice roll | |
var parsePrecedence = (function () { | |
//we don't care about whitespace. well, most whitespace | |
var whitespace = { | |
' ' : true, | |
'\t' : true | |
}; |