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
| /** | |
| * @license CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| * | |
| * The problem: | |
| * You need to make a cross-domain request for JSON data, but the remote | |
| * server doesn't send the necessary CORS headers, and it only supports | |
| * simple JSON-over-HTTP GET requests (no JSONP support). | |
| * | |
| * One possible solution: | |
| * Use 'jsonp-proxy-request-interceptor' to proxy the request through |
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
| 'use strict'; | |
| var React = require('react'); | |
| // EXAMPLE: | |
| // | |
| // var ExampleComponent = React.createClass({ | |
| // render(): any { | |
| // // Define the CSS content used by this component. | |
| // var styleContent = ` |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <!-- Web Component Polyfill for old browsers --> | |
| <script src="https://www.polymer-project.org/platform.js"></script> | |
| <!-- Release candidate of next React --> | |
| <script src="http://fb.me/react-with-addons-0.12.0-rc1.js"></script> | |
| <script src="http://fb.me/JSXTransformer-0.12.0-rc1.js"></script> | |
| <!-- Import a web component --> |
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
| property markdownloc : "/usr/local/bin/multimarkdown" | |
| property tid : AppleScript's text item delimiters | |
| set mdSource to the clipboard | |
| if is_running("Evernote") = false then | |
| tell application id "com.evernote.Evernote" to launch | |
| tell application "System Events" | |
| set visible of process "Evernote" to false |
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
| (* EVERNOTE TO MARKDOWN | |
| --Stephen Margheim | |
| --11/9/13 | |
| --open source | |
| REQUIREMENTS | |
| --Satimage osax plugin | |
| --Aaron Swartz's html2text python script | |
| --Evernote |
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
| property markdownloc : "/usr/local/bin/multimarkdown" | |
| property tid : AppleScript's text item delimiters | |
| set mdSource to the clipboard | |
| --check for Title metadata | |
| try | |
| if text item 1 of paragraph 1 of mdSource = "#" then | |
| if not text item 2 of paragraph 1 of mdSource = "#" then | |
| set theTitle to text items 3 thru -1 of paragraph 1 of mdSource as string |
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 parent = function() { | |
| var spawn = require('child_process').spawn; | |
| var child = spawn(process.execPath, [process.argv[1], 123]); | |
| var stdout = ''; | |
| var stderr = ''; | |
| child.stdout.on('data', function(buf) { | |
| console.log('[STR] stdout "%s"', String(buf)); | |
| stdout += buf; | |
| }); | |
| child.stderr.on('data', function(buf) { |