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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
t := NewTest() | |
// call methods on separate goroutines |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
raw := NewRawPipe() | |
agg := NewAggregatedPipe(raw.out) |
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 React, { Component } from 'react'; | |
import cytoscape from 'cytoscape'; | |
import cydagre from 'cytoscape-dagre'; | |
cydagre(cytoscape); | |
let cyStyle = { | |
height: '400px', | |
display: 'block' | |
}; |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/danieldubovski/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
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 boto3 | |
import json | |
def dump_task_conatiner_defs( | |
output_path='services.', | |
cluster_filter=lambda c_arn: True, | |
service_filter=lambda s_arn: True, | |
task_filter=lambda t_arn: True): | |
""" |
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
#!/usr/local/bin python3 | |
import json | |
import pika | |
def dump_queue_to_file(broker, queue): | |
if not broker: | |
raise ValueError('please set the broker url.') |
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
from pprint import pprint | |
import requests | |
import json | |
import os | |
import sys | |
import time | |
import datetime | |
import traceback | |
from azure.eventhub import EventHubClient, Sender, EventData, EventHubError | |
import logging |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.EventGrid; | |
using Microsoft.Azure.EventHubs.Processor; | |
using Newtonsoft.Json; | |
using CloseReason = Microsoft.Azure.EventHubs.Processor.CloseReason; |
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 os | |
extension = '.csv' | |
files = [f for f in os.listdir() if f.endswith(extension)] | |
target_dir = 'samples' | |
lines_to_copy = 1000 | |
os.mkdir(target_dir) |
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 Clarinet from 'clarinet'; | |
class TrackingObject { | |
data: { [key: string]: any } | null = null; | |
path: string = ''; | |
depth: number = 0; | |
stack: StackItem[] = []; | |
expandArray(key: string) { | |
this.stack.push({ type: 'Array', key, value: null }); |
OlderNewer