This is deprecated in favor of Remark implementation. Posted here for posterity.
let tokens = Pony.getTokens(str)
console.log(JSON.stringify(tokens))
A nice list of icon sets that can be used as web fonts. Handy for building Electron apps too.
Name | URL | Version | License | Created By | Icon Cnt | Source | Url1 | Url2 |
---|---|---|---|---|---|---|---|---|
Brandico | https://github.com/fontello/brandico.font | 2014.04.07 | SIL | Crowdsourced, for Fontello project | 45 | http://fontello.com/ |
src = '# Magic Deck\n\n## A markdown editor for creating magical slide shows\n\n---\n\n# How to Use\n\nJust use `---` for each slide and markdown syntax to make it look pretty.\n\nWhen you\'re ready, just use `⌘+R` to render.\n\n---\n\n# Your Turn\n\n'; | |
var index = src.match(new RegExp('---\n\n', "gi")).length; | |
console.log('Found: ' + index); | |
var pos = src.indexOf('---\n\n', 75); | |
console.log('Pos: ' + pos); |
This is a work in progress. Check back frequently.
~/.appcelerator/install/For CLI Version/package/node_modules/
delete the folder alloy
package.json
filechange the alloy version from ~1.8.0
to 1.9.0
To get the LCD part number type in or copy and paste the following string in to the terminal:
ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*</s///" | xxd -p -r | strings -6
After executing the command you should receive a set of digits and numbers. If you want to determine the manufacturer of your display, simply take the model number generated in Terminal and type it into Google. Usually various OEM part listings will show the name of the brand for your particular LCD screen.
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>amazonaws.com</key> | |
<dict> | |
<key>NSThirdPartyExceptionMinimumTLSVersion</key> | |
<string>TLSv1.0</string> | |
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> | |
<false/> |
this.ycQuestions = [ | |
"So what are you working on?", | |
"Have you raised funding?", | |
"What makes new users try you?", | |
"What competition do you fear most?", | |
"What’s the worst thing that has happened?", | |
"Will you reincorporate as a US company?", | |
"What’s an impressive thing you have done?", | |
"Where is the rocket science here?", | |
"Why did you pick this idea to work on?", |
function Test() { | |
this.data = { | |
"foo":"bar" | |
}; | |
} | |
Test.prototype.transform = function(str) { | |
var err = false; |
// node: | |
var moment = require('moment'); | |
moment().add('days', 2).fromNow(); | |
// 'in 2 days' | |
moment().subtract('days', 2).fromNow(); | |
// '2 days ago' | |
moment('November 1977').fromNow() |