|
|\_ app
|...
|\_ docker
| |
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
kafka-consumer-groups \ | |
--bootstrap-server localhost:9092 \ | |
--topic getting-started:2 --group vcs-1 \ | |
--reset-offsets --to-datetime 2022-01-27T14:35:54.528+11:00 \ | |
--execute |
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/bin/env python3 | |
import sys | |
from operator import itemgetter | |
input = sys.stdin.readline | |
def insr(): | |
s = input() | |
return(list(s[:len(s) - 1])) |
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
{ | |
"fullName": "Polish (Colemak)", | |
"name": "pl-colemak", | |
"singletonKeys": [ | |
[ "Alt_R", "AltGr" ] | |
], | |
"shiftstates": [ "None", "Shift", "AltGr", "Shift+AltGr" ], | |
"keys": [ | |
{ "pos": "~", "letters": [ "`", "~", "tilde", "~" ] }, | |
{ "pos": "1", "letters": [ "1", "!", "¡", "¹" ] }, |
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
{"lastUpload":"2019-11-23T11:07:01.827Z","extensionVersion":"v3.4.3"} |
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
;;;; raytracer.lisp | |
(in-package #:raytracer) | |
(defun sq (x) (* x x)) | |
(defun mag (x y z) | |
(sqrt (+ (sq x) (sq y) (sq z)))) | |
(defun unit-vector (x y z) | |
(let ((d (mag x y z))) |
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 hash_table | |
type Node struct { | |
key string | |
value int | |
next *Node | |
} | |
// HashTable implements hash table with chaining as colision | |
// resolution technique |
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/bin/env ruby | |
require 'english' | |
require 'rubocop' | |
ADDED_OR_MODIFIED = /A|AM|^M/.freeze | |
changed_files = `git status --porcelain`.split(/\n/). | |
select { |file_name_with_status| | |
file_name_with_status =~ ADDED_OR_MODIFIED |
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
Code.load_file("computation.ex") | |
Code.load_file("aggregator.ex") | |
defmodule AsyncNoLink do | |
def run do | |
:random.seed(:os.timestamp) | |
Task.Supervisor.start_link(name: :task_supervisor) | |
1..10 | |
|> Enum.map(fn(_) -> :random.uniform(1000) - 500 end) |
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
require 'factory_boy/factory' | |
require 'factory_boy/errors' | |
require 'factory_boy/factory_identifier' | |
require 'factory_boy/factory_register' | |
module FactoryBoy | |
@defined_factories = FactoryRegister.new | |
def self.clear_factories | |
@defined_factories = FactoryRegister.new |
NewerOlder