Skip to content

Instantly share code, notes, and snippets.

@eins78
eins78 / .cursorrules
Created June 2, 2025 05:55 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
http://www.test.ewz.quatico.com/de/private/elektromobilitaet-privatkunden/zuhause-laden/meine-ladestation.html
#!/bin/bash
set -exu
apt-get purge -y docker docker-engine docker.io containerd runc
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
apt-get update
apt-get install -y \
ca-certificates \
curl \
@eins78
eins78 / tutorial.md
Created August 4, 2018 14:21 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@eins78
eins78 / about-doctor-stats-plugin.md
Last active February 26, 2017 14:46
doctor stats plugin. install it on <professor.amiacyb.org> then click the "נקודות" box.

doctor stats plugin.

install it on http://professor.amiacyb.org then click the "נקודות" box.

install with bookmarklet here

or paste the JS code in the browser console, use a "userscripts" or "greasmonkey" browser extension, etc.

if installation was successful, the "נקודות" box will show a "?" pointer icon on mouse hover.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<script src="https://unpkg.com/[email protected]/dist/react.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/react-dom.min.js"></script>
</head>
<body>
<div id="root"></div>
@eins78
eins78 / README.md
Created November 18, 2015 19:02 — forked from mbostock/.block
Radial Reingold–Tilford Tree

The tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Cartesian orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.'s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

Compare to this Cartesian layout.

@eins78
eins78 / wtf.rb
Created September 14, 2015 12:37
rails controller instance var is cached if initialy assigned to const
class FooController < ApplicationController
KONST = {
foo: { bar: 'baz' },
}
def show
@konst = KONST
end
@eins78
eins78 / index.js
Last active September 11, 2015 16:14
requirebin sketch
React = require('react')
curry = require('lodash/function/curry')
var List = React.createClass({
// this component expects a 'items' prop containing an array of strings
// we want to track here how often what was clicked
getInitialState: function(){
return {
items: this.props.items.map(function(item, index){
@eins78
eins78 / rails_error_classes.yaml
Created May 11, 2015 20:26
rails_error_classes.yaml
# class StandardError
# def descendants
# ObjectSpace.each_object(::Class).select {|klass| klass < self }
# end
# end
# puts (StandardError.descendants.map(&:to_s).sort.group_by {|s|s.split('::')[0]}).to_yaml
# output for <https://github.com/Madek/madek-webapp>:
---