Skip to content

Instantly share code, notes, and snippets.

View andreaswissel's full-sized avatar
🏳️‍🌈
in the mood for food

Andreas Wissel andreaswissel

🏳️‍🌈
in the mood for food
  • Frankfurt, Germany
View GitHub Profile
<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization#_use-a-githubcopilotinstructionsmd-file -->
This is an Angular component library workspace. Please generate Angular components, modules, and services using best practices for reusable libraries. Use SCSS for styles and prefix all selectors with 'cmp-'.
## Coding guidelines
### setup
- setup an Angular project with Storybook. Use the latest version and configure it to have stories files next to the components, delete the sample content from Storybook in the `/stories` folder
- check if the project uses Angular libraries or nx libraries and configure Storybook accordingly
const axios = require("axios");
const cheerio = require("cheerio");
const TurndownService = require("turndown");
const fs = require("fs");
const path = require("path");
const { URL } = require("url");
const turndownService = new TurndownService({
linkStyle: "inlined",
});
{
"name": "design-systems",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
@andreaswissel
andreaswissel / ASS.md
Created March 25, 2021 06:53 — forked from anonymous/ASS.md
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

@andreaswissel
andreaswissel / setup.sh
Last active February 6, 2025 13:11
new mac setup script
# Command line tools
xcode-select --install
# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# zsh
import { configure } from '@storybook/angular';
// automatically import all files ending in *.stories.ts
const req = require.context('../src', true, /\.stories.ts$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module);
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
ol[class] {
@andreaswissel
andreaswissel / mockdata.json
Created April 4, 2019 14:53
mock list data
[{"id":1,"first_name":"Mandy","last_name":"Bickford","email":"[email protected]","gender":"Female","ip_address":"66.247.186.88"},
{"id":2,"first_name":"Gibb","last_name":"Durning","email":"[email protected]","gender":"Male","ip_address":"65.72.150.6"},
{"id":3,"first_name":"Priscella","last_name":"Facchini","email":"[email protected]","gender":"Female","ip_address":"190.241.230.78"},
{"id":4,"first_name":"Sawyere","last_name":"Loffill","email":"[email protected]","gender":"Male","ip_address":"161.94.206.144"},
{"id":5,"first_name":"Esme","last_name":"Icke","email":"[email protected]","gender":"Male","ip_address":"205.145.109.163"},
{"id":6,"first_name":"Wadsworth","last_name":"Whitcomb","email":"[email protected]","gender":"Male","ip_address":"53.74.252.123"},
{"id":7,"first_name":"Amble","last_name":"Strauss","email":"[email protected]","gender":"Male","ip_address":"170.83.86.29"},
{"id":8,"first_name":"Gavra","last_name":"Janic","email":"[email protected]","gender":"Fema

Keybase proof

I hereby claim:

  • I am kaeku on github.
  • I am kaeku (https://keybase.io/kaeku) on keybase.
  • I have a public key whose fingerprint is BFB2 6C82 7799 2E0C CC7D 3260 75E7 E23E 6005 F632

To claim this, I am signing this object:

let submitAllAsync = (event) => {
(!!event) ? event.preventDefault() : null;
$('.totalpoll-poll-container [name^="totalpoll[action]').each((i, e) => {
var $this = $(e);
var $container = $this.closest('.totalpoll-poll-container');
var fields = $container.find('form').serializeArray();
fields.push({name: $this.attr('name'), value: $this.val()});
fields.push({name: 'action', value: TotalPoll.AJAX_ACTION || 'tp_action'});