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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
function Frontend() { | |
return <div>Sample Snippet Content - TESTING*******************</div>; | |
} | |
// self executing function here | |
(function () { | |
// your page initialization code here |
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
import kafka from "kafka-node"; | |
import uuid from "uuid"; | |
const client = new kafka.Client("http://localhost:2181", "my-client-id", { | |
sessionTimeout: 300, | |
spinDelay: 100, | |
retries: 2 | |
}); | |
const producer = new kafka.HighLevelProducer(client); |
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
import React, { useState } from "react"; | |
import Recorder from "./Recorder"; | |
function App() { | |
const [convoState, setConvoState] = useState({}); | |
const [response, setResponse] = useState(""); | |
const [error, setError] = useState(null); | |
const [requestInfo, setRequestInfo] = useState({ | |
UserID: "test_user", | |
Latitude: 37.388309, |
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
{ | |
"editor.formatOnSave": true, | |
// Enable per-language | |
"[javascript]": { | |
"editor.formatOnSave": true | |
}, | |
"[json]": { | |
"editor.formatOnSave": true | |
}, | |
"emmet.syntaxProfiles": { |
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
import kafka from "kafka-node" | |
const client = new kafka.Client("http://localhost:2181"); | |
const topics = [ | |
{ | |
topic: "webevents.dev" | |
} | |
]; | |
const options = { |
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
import kafka from "kafka-node" | |
const client = new kafka.Client("http://localhost:2181"); | |
const topics = [ | |
{ | |
topic: "webevents.dev" | |
} | |
]; | |
const options = { |
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
/* Make the element pulse (grow large and small slowly) */ | |
/* Usage | |
.myElement { | |
animation: pulsate 1s ease-out; | |
animation-iteration-count: infinite; | |
opacity: 1; | |
} | |
*/ | |
@-webkit-keyframes pulsate { | |
0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;} |
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 all applications from the applicationList store | |
exports.allApplications = ['applicationList']; | |
// Get the search term from the searchTerm Store | |
exports.searchTerm = ['searchTerm']; | |
// Create a getter called filteredApplicationList, that takes | |
// the above two stores, filters the appList against the search | |
// query, and returns the result. | |
exports.filteredApplicationList = [ |
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Theme - Hero/Hero Dark.tmTheme", | |
"fade_fold_buttons": false, | |
"font_face": "Source Code Pro", | |
"font_size": 13.0, | |
"highlight_line": true, | |
"ignored_packages": |
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
YUI.add('event-hammer', function (Y, NAME) { | |
/* | |
Copyright 2013 Yahoo! Inc. | |
Licensed under the BSD License. | |
http://yuilibrary.com/license/ | |
*/ | |
'use strict'; | |
//loop through Hammer.gestures | |
var HAMMER_GESTURES = [ |
NewerOlder