Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am a1ee9b on github.
  • I am jannikz (https://keybase.io/jannikz) on keybase.
  • I have a public key whose fingerprint is D81F A5B8 CE50 61C8 0CDB FCB5 26E1 D4D2 16FF 5E18

To claim this, I am signing this object:

<link rel="import" href="../code-mirror/code-mirror.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@a1ee9b
a1ee9b / ValuePlease.js
Last active January 4, 2016 04:39
ValuePlease provides access to an object everywhere.
/*
* ValuePlease
*
* Make objects accessible everywhere. Independently from encapsulation.
*
* Supports all major browsers in the current version.
*
* VERY EARLY STAGE. SHOULD BE TESTED INTENSIVELY.
*
* MIT-License
@a1ee9b
a1ee9b / a1ee9b.zsh-theme
Created October 11, 2013 22:43
A ZSH-Template. Shows the current user at machine plus the collapsed path and git branch and status.
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
local return_code="%(?..%{$fg_bold[red]%}%? ↵ %{$reset_color%})"
PROMPT='${return_code}%{$fg_no_bold[green]%}(%n@%M)$(collapse_pwd)%{$reset_color%}$(git_prompt_info) »'
RPROMPT="%D{%H:%M:%S %e.%b.%Y}"
# git settings
@a1ee9b
a1ee9b / chrome.refresh.sh
Last active December 23, 2015 02:19 — forked from nikcub/chrome.refresh.sh
For those using Grunt, you can run this script with the grunt module grunt-exec (https://github.com/jharding/grunt-exec). I put the script in the same folder where the Gruntfile.js is located and used the following configuration: exec: { reload: { command: './chrome.refresh.sh localhost', stdout: true, stderr: true }
#!/bin/bash
# Chrome Refresh
#
# Simple applescript browser reloader for Google Chrome. It will either open a
# new tab with the url passed in as an argument or refresh an existing tab.
#
# Use grunt-exec to include it in your build process
#
# 2-clause BSD license