Skip to content

Instantly share code, notes, and snippets.

View 0x6a68's full-sized avatar
🔌
Beam'ing

0x6a68

🔌
Beam'ing
View GitHub Profile
@0x6a68
0x6a68 / _grab.scss
Created February 14, 2014 14:43 — forked from shiwano/_grab.scss
@charset "UTF-8";
@mixin grab-cursor {
// http://www.google.com/intl/en_ALL/mapfiles/openhand.cur
cursor: url('data:image/vnd.microsoft.icon;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAA/AAAAfwAAAP+AAAH/gAAB/8AAA//AAAd/wAAGf+AAAH9gAADbYAAA2yAAAZsAAAGbAAAAGAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////gH///4B///8Af//+AD///AA///wAH//4AB//8AAf//AAD//5AA///gAP//4AD//8AF///AB///5A////5///8='), all-scroll;
// cursor: -webkit-grab;
cursor: -moz-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab;

Keybase proof

I hereby claim:

  • I am johannestroeger on github.
  • I am johannestroeger (https://keybase.io/johannestroeger) on keybase.
  • I have a public key whose fingerprint is EFE7 4A37 B563 0D8C B73D 4963 387B BB28 7436 B4F1

To claim this, I am signing this object:

@0x6a68
0x6a68 / jsbin.bacox.js
Last active August 29, 2015 13:59
Functional Progamming in Javascript: A checkCommander
var slice = Array.prototype.slice;
// value to be checked:
var value = 1;
// limits
var max = 100;
var min = 10;
// checker to create checkCommand on a value
var checker = function (/* validators */) {
var validators = slice.call(arguments);
return function (val) {
@0x6a68
0x6a68 / SassMeister-input.scss
Created July 7, 2014 14:47
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
// markup
// <div class="m-box ${modifier}">
// <div class="m-box__head">Hallo i am the Head</div>
// </div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
div > :not(:empty) {
display: none;
}
</style>
@0x6a68
0x6a68 / pedantically_commented_playbook.yml
Created March 1, 2016 13:02 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@0x6a68
0x6a68 / vdom-stream.js
Created March 24, 2016 18:35 — forked from twfarland/vdom-stream.js
redux style reducer with vdom, baconjs and immutablejs
import Immutable from 'immutable'
import Bacon from 'baconjs'
import h from 'virtual-dom/h'
import diff from 'virtual-dom/diff'
import patch from 'virtual-dom/patch'
import createElement from 'virtual-dom/create-element'
const INCREMENT = 'INCREMENT'
const DECREMENT = 'DECREMENT'
@0x6a68
0x6a68 / index.js
Created November 7, 2016 09:56
fractal programmatically
const fractal = require('@frctl/fractal').create()
require('./setup')(fractal)
const server = require('./server')(fractal, {
port: 4000,
sync: true,
watch: true,
syncOptions: {
files: [
'files-i-want-to-watch-also.css',
@0x6a68
0x6a68 / asList.tsx
Created September 8, 2017 16:37
react typescript `asList`
import * as React from 'react';
function asList<P>(ItemComponent: React.ComponentClass<P> | React.StatelessComponent<P>) {
return function List({ items }: { items: P[] }) {
return (
<ol>
{items.map((item, idx) =>
<li key={idx}>
<ItemComponent {...item} />
</li>)
@0x6a68
0x6a68 / simpleComponentWrap.tsx
Last active September 8, 2017 16:39
react typescript HOC
import * as React from 'react';
function simpleComponentWrap<P>(
Comp: React.ComponentClass<P> | React.StatelessComponent<P>,
): React.ComponentClass<P> {
return class WrappedComponent extends React.Component<P, void> {
render() {
return <Comp {...this.props} />;
}
};