Skip to content

Instantly share code, notes, and snippets.

View Plsr's full-sized avatar
😍

Christian Jarling Plsr

😍
View GitHub Profile
@Plsr
Plsr / jan-23.opml
Created January 11, 2023 09:53
OPML Exports
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Chris subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Techblogs" title="Techblogs"/>
<outline text="Personal Blogs" title="Personal Blogs"/>
<outline text="Security" title="Security"/>
@Plsr
Plsr / index.tsx
Created November 19, 2022 20:57
react-query useMutation multiple in sequence
import { useMutation } from "@tanstack/react-query";
const mockApiUrl = "https://untitled-l5q2pajt3yo0.runkit.sh/post";
const mutateFn = async () => {
const res = await fetch(mockApiUrl, {
method: "POST",
mode: "cors",
});
if (!res.ok) {
import json
import hashlib
import requests
from flask import Flask, jsonify, request
from time import time
from uuid import uuid4
from urllib.parse import urlparse
class Blockchain(object):
energetic: red
exciting: red
romantic: red
loving: pink
calm: blue
wise: blue
loyal: blue
focussed: blue
natural: green
wealthy: green
@Plsr
Plsr / romeove_local_modules.md
Created July 1, 2016 14:47
Node.js snippets and knowledge

Uninstalling modules is as straght forward as installing them, simply use npm uninstall package This will remove the package from the node_modules folder.
If we wanted to remove it from our package.json as well, we'd have to use either --save or --save-dev as arguments, depending if the module is a regular dependency or a dev dependency.

@Plsr
Plsr / 0_reuse_code.js
Created July 1, 2016 08:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Plsr
Plsr / Ressourcen.md
Last active July 8, 2016 12:57
Ressourcen rund um den Bereich Design, zusammengestellt für das Modul Grundlagen der visuellen Kommunikation an der TH Köln.
@Plsr
Plsr / SassMeister-input.scss
Created November 6, 2014 13:46
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// SASS Advanced Übung
// Aufgabe 1
// Strukturiere den Code so um, dass der Selektor ".alert" nur
@Plsr
Plsr / SassMeister-input-HTML.html
Created November 6, 2014 13:45
Generated by SassMeister.com.
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
</body>