View gist:6b2d9ef5411b4612bff43f3a0c559618
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test</title> | |
<script type="module"> | |
import {Theme} from "@spectrum-web-components/theme/lib/index"; | |
import {OverlayTrigger} from "@spectrum-web-components/overlay/lib/index"; | |
import {Popover} from "@spectrum-web-components/popover/lib/index"; | |
import {Button} from "@spectrum-web-components/button/lib/index"; |
View gist:0056a79751a9a63073b23e18682e7f74
This file contains 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
import { LitElement, html } from 'lit-element'; | |
class SimpleGreeting extends LitElement { | |
constructor() { | |
super(); | |
this.model = { | |
currentThing: 'optionA', | |
things: [ 'optionA', 'optionB' ] | |
}; | |
} |
View gist:c3909d35a13150ea71c097780bbc00fe
This file contains 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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script type="module"> | |
import { html, render } from 'https://unpkg.com/lit-html'; | |
/** UNCOMMENT THE FOLLOWING AND COMMENT OUT THE IMPORT TO NOT USE LIT-HTML | |
const html = function(strings, ...values) { | |
let str = ''; |
View gist:f5b519260663af7d8eba
This file contains 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
{ | |
"version": "2.0.9", | |
"replacements": [ | |
{ | |
"repA": "muslim", | |
"repB": "gun", | |
"type": "Simple", | |
"case": "Override", | |
"active": true | |
}, |
View VO Creation
This file contains 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
/** | |
* Copied from Node-Google-Text-To-Speech module | |
* https://github.com/ashafir20/node-google-text-to-speech | |
* | |
* Altered to not change output to Base64 String, and since I'm | |
* modifying it for my own purposes, I'll make it more directly tied in | |
* as a VO creation script | |
*/ | |
var request = require('request'); |
View gist:4bd75031e40c5dd7202e
This file contains 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
app.on('ready', function() { | |
var injectscript = escape(__dirname + '/inject/test.js'); | |
mainWindow = new BrowserWindow( { width: '800px', height: '600px', 'web-preferences': { 'web-security': false } }); | |
mainWindow.loadUrl('http://google.com' ); | |
mainWindow.openDevTools(); | |
mainWindow.getWebContents().on('did-finish-load', function() { | |
var remotejs = "var js = document.createElement('script'); \ | |
js.src = 'file://' + unescape('" + injectscript + "'); \ | |
console.log(js); \ | |
document.getElementsByTagName('body')[0].appendChild(js);"; |
View gist:b8672aaaeed1dc682a60
This file contains 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 http = require('http'); | |
function getBears(styleId) { | |
var url = [ | |
"http://google.com", | |
"/" | |
].join(''); | |
http.get("http://someurl", function(res) { | |
var body = ''; |
View gist:11165435
This file contains 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 WebSocketServer = require('websocket').server; | |
var http = require('http'); | |
var server = http.createServer(function(request, response) { | |
console.log((new Date()) + ' Received request for ' + request.url); | |
response.writeHead(404); | |
response.end(); | |
}); | |
server.listen(9000, function() { |
View gist:8777742
This file contains 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
app.service('logcat', function() { | |
var self = this; | |
//***************************************************** | |
//* NODE STUFF HERE! | |
// | |
var adb = require('adbkit'); | |
var Connection = require('adbkit/lib/adb/connection'); | |
//***************************************************** |
View ViiM test
This file contains 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
#include <node.h> | |
#include <v8.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string> | |
#include <ViiM/ViiMIncludes.h> | |
#include <ViiM/core/ViiMTypes.h> | |
#include "Viim/ViiM.h" |
NewerOlder