Skip to content

Instantly share code, notes, and snippets.

View wanderingstan's full-sized avatar

Stan James wanderingstan

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 26 columns, instead of 22. in line 8.
Rank,Freq,Infinitiv,Präsens_ich,Präsens_ich*,Präsens_du,Präsens_du*,"Präsens_er, sie, es",Präteritum_ich,Präteritum_ich*,Partizip II,Partizip II*,Konjunktiv II_ich,Konjunktiv II_ich*,Imperativ Singular,Imperativ Singular*,Imperativ Singular 2,Imperativ Plural,Imperativ Plural*,Hilfsverb,Hilfsverb*,Bild,Bild 1,Bild 2,Bild 3,Bild 4
1,3796784,sein,bin,,bist,,ist,war,,gewesen,,wäre,,sei,,,seid,,sein,,,,,,
2,1618550,haben,habe,,hast,,hat,hatte,,gehabt,,hätte,,habe,hab,,habt,,haben,,,,,,
3,1379496,einen,eine,,einst,,eint,einte,,geeint,,einte,,eine,ein,,eint,,haben,,,,,,
4,948246,werden,werde,,wirst,,wird,wurde,ward,geworden,worden,würde,,werde,,,werdet,,sein,,,,,,
5,713918,können,kann,,kannst,,kann,konnte,,gekonnt,,könnte,,—,,,—,,haben,,,,,,
6,556692,meinen,meine,,meinst,,meint,meinte,,gemeint,,meinte,,meine,,,meint,,haben,,,,,,
7,513384,wollen,will,,willst,,will,wollte,,gewollt,wollen,wollte,,—,,,—,,haben,,,,,,
8,407185,gehen,gehe,,gehst,,geht,ging,,gegangen,,ginge,,geh,gehe,,geht,gehet,sein,,Blender3D NormalWalkC
@wanderingstan
wanderingstan / make_grid.py
Last active November 17, 2020 20:27
Create grid of movies using ffpeg
# Create a movie which is a grid of other movies.
# Based on: https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos
# With help from: http://superuser.com/questions/991714/select-audio-from-second-input-file-for-ffmpeg-movie-overlay/991747#991747
#
# Example:
# python make_grid.py -x 4 -y 4 -o 4x4.mov Breezeblocks*.mov
#
# Will take up to 16 (4x4) movies with name staring with "Breezeblocks" and
# create a movie grid of them playing simultaneously, saved as 4x4.mov.
#
@wanderingstan
wanderingstan / fun.js
Created November 25, 2019 19:03
Playing with browser console
// Copy paste this into chrome/ff console
class StackOverflow_Answers {
get Open_javascript_console_without_blah_bah() {
window.open("https://google.com/")
return false;
}
get How_do_I_print_from_javascript_I_am_dumb() {
window.open("https://google.com/")
return false;
~/code/HOPCoin-docker-test/client$ docker-compose up
WARNING: The PRISMA_ENDPOINT variable is not set. Defaulting to a blank string.
WARNING: The FRONTEND_URL variable is not set. Defaulting to a blank string.
WARNING: The SENDGRID_API_KEY variable is not set. Defaulting to a blank string.
WARNING: The MAIL_FROM_ADDRESS variable is not set. Defaulting to a blank string.
Recreating hopcoin-docker-test_client_1 ...
hopcoin-docker-test_postgres-db_1 is up-to-date
hopcoin-docker-test_backend_1 is up-to-date
Recreating hopcoin-docker-test_client_1 ... done
Starting hopcoin-docker-test_prisma_1 ... done
import sqlite3
import re
class WikiPage:
def __init__(self, title, text):
self.title = title
self.text = text
def __str__(self):
return self.title + ' ' + self.text
{
"config": {
"forceType": {
"category": "schema.forSale",
"subCategory": "schema.giftCards",
"typename": "GiftCardListing"
},
"title": "Stan's Gift Cards",
"about": "A marketplace for gift cards",
"logoUrl": "https://ipfs.originprotocol.com/ipfs/Qma8e19KsvufSAdYUTunU8Thk3nGPazEtZFpXk2XcxzvzC",
[stan]~/Origin$ git clone git@github.com:OriginProtocol/origin.git origin-new
Cloning into 'origin-new'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 60678 (delta 1), reused 2 (delta 0), pack-reused 60657
Receiving objects: 100% (60678/60678), 109.22 MiB | 648.00 KiB/s, done.
Resolving deltas: 100% (42884/42884), done.
[stan]~/Origin$ cd origin-new/
[stan]~/Origin/origin-new$ npm install
> husky@1.3.1 install /Users/stan/Origin/origin-new/node_modules/husky
> node husky install
husky > setting up git hooks
husky > done
> root@ postinstall /Users/stan/Origin/origin-new
> npm run bootstrap && node scripts/symlink-packages.js
$ npm run start:listener:development -- --identity --growth --marketplace --network=localhost --continue-file=continue-file.json
> @origin/discovery@0.1.0 start:listener:development /Users/stan/Origin/origin/infra/discovery
> nodemon src/listener/listener.js "--identity" "--growth" "--marketplace" "--network=localhost" "--continue-file=continue-file.json"
[nodemon] 1.18.11
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node src/listener/listener.js --identity --growth --marketplace --network=localhost --continue-file=continue-file.json`
[INFO] event-listener: Starting event-listener with config: {