Skip to content

Instantly share code, notes, and snippets.

View zosiu's full-sized avatar

Zsófia Balogh zosiu

  • 16:30 (UTC +02:00)
View GitHub Profile
@zosiu
zosiu / USomeBPLib.cpp
Created September 19, 2022 18:17 — forked from cgerchenhp/USomeBPLib.cpp
Apply color to nested array property rows. BlueprintCallable / Python Version
void RecursivelyFindChildrenWidgetsOfType(TSharedPtr<SWidget> Widget, FString WidgetType, TArray<TSharedPtr<SWidget>>& OutFindedChildrenWidgets)
{
if (!Widget.IsValid())
{
return;
}
FChildren* Children = Widget->GetChildren();
if (Children)
{
@zosiu
zosiu / Dockerfile
Created May 9, 2017 07:36 — forked from mjason/Dockerfile
build phoenix in docker
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git wget curl build-essential
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get install erlang -y
RUN apt-get install -y elixir
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
@zosiu
zosiu / fake-s3-config.rb
Created August 26, 2016 09:50 — forked from ktopping/fake-s3-config.rb
fake s3 config
# Add the following to /etc/hosts:
127.0.0.1 local.s3.endpoint local-bucket.local.s3.endpoint
# Run the following in your rails console, in order to create a bucket:
s3=AWS::S3.new(
:access_key_id => 'anything',
:secret_access_key => 'anything',
:s3_endpoint => 'local.s3.endpoint',
:s3_port => 4567,
:use_ssl => false
@zosiu
zosiu / whiteboardCleaner.md
Created August 5, 2016 18:45 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

KC60 Keyboard end-user tips, tricks, programming notes, etc.

Leimi's note: removed lots of stuff from the original gist of scottjl, (thanks to him by the way!), as in the end some wasn't useful for me. If you are intestered, go check the gist revisions.

The KC60 is kinda like a premade GH60 that was first sold on Massdrop during summer 2015.
It runs on TMK firmware, or something based on it at least (not sure this is the real source for the keyboard but it seems it is), which means it's heavily programmable.
There is a GUI tool (the source of this tool seems to be here) and a command-line tool to ease up the process of programming the board.
**Go check this great article on Key

@zosiu
zosiu / critical_hit
Created December 5, 2015 01:08
Hipchat status change
#!/bin/bash
# usage: critical_hit HIPCHAT_API_KEY HIPCHAT_USER_ID_OR_EMAIL
(./set_hipchat_status $1 $2 dnd; sleep 2h; ./set_hipchat_status $1 $2 chat) &
@zosiu
zosiu / countries-without-postcodes.rb
Created November 13, 2015 10:25
Countries without postal codes
COUNTRIES_WITHOUT_POSTCODES = [
[ "Angola", "AO" ],
[ "Antigua and Barbuda", "AG" ],
[ "Aruba", "AW" ],
[ "Bahamas", "BS" ],
[ "Belize", "BZ" ],
[ "Benin", "BJ" ],
[ "Botswana", "BW" ],
[ "Burkina Faso", "BF" ],
[ "Burundi", "BI" ],
@zosiu
zosiu / checker.rb
Created October 20, 2015 01:18
When can I read [X]? - WaniKani Level Checker
#!/usr/bin/env ruby
require 'yaml'
require 'mojinizer'
text = STDIN.read
kanjidb = YAML.load_file('kanji_levels.yml')
kanji = text.chars.select { |ch| ch.kanji? }.uniq
@zosiu
zosiu / nisemonogatari.yml
Created September 6, 2015 23:22
nisemonogatari kanji
- - "お前"
- :count: 325
:readings:
- "オマエ"
- - "木"
- :count: 285
:readings:
- "キ"
- - "言う"
- :count: 279
@zosiu
zosiu / wk_wallpaper.rb
Created July 25, 2015 15:35
WaniKani wallpaper
#!/usr/bin/env ruby
require 'wanikani'
Wanikani.api_key = 'YOUR_WANIKANI_API_KEY'
wanikani_kanji_data = Wanikani::Level.kanji(*(1..60))
def color_for(item)
case (item['user_specific'] || {})['srs']
when 'apprentice' then '#dd0093'