Skip to content

Instantly share code, notes, and snippets.

View topless's full-sized avatar
💭
Music For The Jilted Generation

Christos Topaloudis topless

💭
Music For The Jilted Generation
View GitHub Profile
@topless
topless / dashboard-endpoints.md
Last active May 23, 2022 11:31
Dashboard Endpoints

Dashboard endpoints

/integration/{integrationType}/{integrationId}

  • GET

    {
      customerId: string,
      installedAt: date,
@topless
topless / webhook-listener.js
Created February 10, 2022 21:38 — forked from jweisman/webhook-listener.js
Node.js listener for Alma webhooks
const express = require('express')
const bodyParser = require('body-parser');
const crypto = require('crypto');
const app = express()
const port = 8000
const webhook_secret = process.env.WEBHOOK_SECRET || '1234'
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
@topless
topless / vscode_launch.json
Last active April 1, 2020 11:42
Jest debug config
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"args": ["test", "--runInBand", "--no-cache", "--watchAll=false"],
"cwd": "${workspaceRoot}",
@topless
topless / invenio-releases.py
Last active March 11, 2020 13:54
invenio released versions sanity check
# Iterate through all invenio repositoried and find which ones changes since
# the since_date. Also find out which repositories have their last commits
# which are not releases
# NOTE: pip install PyGithub
import os
import json
from datetime import datetime
from github import Github
@topless
topless / gist:ec5958ce80a5199f1910d9dde710bbfc
Created November 13, 2019 17:31 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@topless
topless / invenio_rest_requests.sh
Last active November 15, 2019 15:06
Marshmallow test requests
# Create
curl -k --header "Content-Type: application/json" --request POST \
--data '{"title":"Some title", "contributors": [{"name": "Doe, John"}]}' \
https://localhost:5000/api/records/\?prettyprint\=1
curl -k --header "Content-Type: application/json" --request POST \
--data '{"title":"This is a title indeed", "contributors": [{"name": "Da Chris, Pop"}]}' \
https://localhost:5000/api/records/\?prettyprint\=1
# GET
@topless
topless / .zshrc
Created September 10, 2019 07:15
zshrc
plugins=(
git
z
zsh-syntax-highlighting
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
@topless
topless / ils.yml
Last active December 2, 2019 17:08
itermocil
windows:
- name: invenio-app-ils
root: ~/Work/invenio-app-ils
layout: even-vertical
panes:
- docker-compose up
- celery worker -A invenio_app.celery -l INFO
- commands:
- workon ils
- code .
@topless
topless / on-jsx.markdown
Created November 5, 2018 01:32 — forked from chantastic/on-jsx.markdown
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't