Skip to content

Instantly share code, notes, and snippets.

View konstantindenerz's full-sized avatar

Konstantin Denerz konstantindenerz

View GitHub Profile
@konstantindenerz
konstantindenerz / webstorm-live-template-a-story.ts
Last active July 23, 2024 11:52
A WebStorm live template to generate a Storybook's stories file for a specific Angular component. Component Story Format V2
import {Meta, moduleMetadata, StoryObj} from '@storybook/angular';
import {$ComponentName$Component} from './$componentName$.component';
const meta: Meta<$ComponentName$Component> = {
title: '$StoryName$',
component: $ComponentName$Component,
};
export default meta;
type Story = StoryObj<$ComponentName$Component>;
@thomasdarimont
thomasdarimont / spinning-cube.html
Last active April 10, 2024 20:45
Spinning Cube with HTML5, Canvas, JS
<!doctype html>
<html>
<head>
<title>Spinning Cube</title>
<script type="text/javascript">
function Point3D(x,y,z) {
this.x = x;
@thomasdarimont
thomasdarimont / 0_ExprExample.js
Last active June 18, 2021 13:00
Simpler arithmetic expression syntax for MongoDB Aggregation Framework via AST Transformations
> expr("(a+b)*c")
{ "$multiply" : [ { "$add" : [ "$a", "$b" ] }, "$c" ] }
> expr("1+2*2+3")
{
"$add" : [
{
"$add" : [
1,
{
@denji
denji / README.md
Last active April 26, 2024 18:09 — forked from istepanov/gist:3950977
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@agnoster
agnoster / README.md
Last active July 29, 2024 09:17
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@rodw
rodw / backup-github.sh
Last active July 15, 2024 20:56
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * Under the heading "CONFIG" below you'll find a number of configuration
# parameters that must be personalized for your GitHub account and org.
# Replace the `<CHANGE-ME>` strings with the value described in the comments
# (or overwrite those values at run-time by providing environment variables).