Skip to content

Instantly share code, notes, and snippets.

View wanderingstan's full-sized avatar

Stan James wanderingstan

View GitHub Profile
@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;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
~/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
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
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 [email protected]: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
> [email protected] 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/[email protected] 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: {
@wanderingstan
wanderingstan / dappConfig.js
Last active November 7, 2018 17:37
test custom config
{
"name": "Micah's Chicken Rental",
"logo": "ipfs://QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4",
"about": "A place to rent quality chickens",
"envVars": {
"AFFILIATE_ACCOUNT": "0x7aD0fa0E2380a5e0208B25AC69216Bd7Ff206bF8",
"ARBITRATOR_ACCOUNT": "0x7aD0fa0E2380a5e0208B25AC69216Bd7Ff206bF8"
},
"cssVars": {
"heading-font": ["Comic Sans MS", "Georgia", "serif"],