Skip to content

Instantly share code, notes, and snippets.

http://duck.mozilla.com/assets/avatars/robot.XXX
http://duck.mozilla.com/assets/avatars/robot-0.1.0.XXX
{
"name": "robot",
"version": "0.1.0",
"layers": [
{
"name": "base",
"bundles": [
@gfodor
gfodor / gist:a4f5e4721e959766e75e4c901bf42890
Created March 20, 2017 07:44
Kafka Topic Resetter Class
package com.altvr.streams.jobs.utils;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.StreamsConfig;
import org.slf4j.Logger;
function newNode(data, parent) {
return { data: data, parent: parent };
}
function deepestCommonAncestorOf(x, y) {
// Your code here
}
function assertEquals(x, y) {
if (x !== y) {
psql (9.6rc1)
Type "help" for help.
test=# create role guy;
CREATE ROLE
test=# revoke all privileges on schema public from guy;
REVOKE
test=# revoke all on all tables in schema public from guy;
REVOKE
test=# set role guy;
Setup Coding Environment
**For code editing, we recommend that you download and run Sublime Text.**
- Create a new folder for your project.
- Clone or download the GitHub repo to your project folder.
- Drag your project folder into Sublime. All files will be easily to navigate on the sidebar.
- Move or snap Sublime to left side of your monitor. (Win: Windows + Left Arrow)
- For local hosting, we recommend that you download and run Prepros. Prepros has the added benefit of reloading every time you make a change to a file in your project folder. We do not recommend using file:// in a browser due to cross domain issues. To use Prepros, just drag your project folder into Prepros.
@gfodor
gfodor / gist:202ab4b367724c7169a5
Created July 10, 2015 01:06
voip_settings.json
{ "use_adaptive_microphone_cutoff": false, "perform_mic_cutoff": false }
@gfodor
gfodor / gist:4afd66eec7bc6d0c98a5
Created May 4, 2015 06:02
AltspaceVR Smoke Test
[ ] Foo
[ ] Bar
@gfodor
gfodor / gist:c3d2987e28c4642f5bd9
Created May 4, 2015 06:01
AltspaceVR Smoke Test
Test
Continuous Deployment of a VR Application
Greg Fodor, Director of Engineering
AltspaceVR
http://altvr.com
greg@altvr.com
@gfodor