Skip to content

Instantly share code, notes, and snippets.

@imdanielch
imdanielch / aprompt.png
Last active August 29, 2015 14:11 — forked from mislav/aprompt.png
aprompt.png
Busymind Mindfulness for your busy life
Slow down. Search your body for tension.
This could be at your shoulders, your back, or your mouth.
Release the tension let your body sink in to relaxation.
Now focus on your breath.
As you breath, feel your chest expand and contract. Feel the air move in and out.
@imdanielch
imdanielch / wifi-diagnostics
Created April 29, 2015 16:34
WiFi Diagnostics Linux
#!/bin/bash
#
# Copyright (c) 2012
#
# Authors: Wild Man, Krytarik
# Helpers: chili555
#
# This script gathers the infos necessary for troubleshooting a wireless
# connection and saves them in a text file, wrapping it in an archive if it
# exceeds the 19.5 kB size limit for ".txt" attachments on the Ubuntu Forums.
Bus 001 Device 106: ID 0603:8612 Novatek Microelectronics Corp.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
<!-- This gist discribes a workaround for Android <4.4 and iOS <7.
The problem is that those iOS and Android versions do not support
flexbox wrapping and make (in the case I was working on) them invisible.
The goal is to flex a list of items with a fixed width and in case of floating a fixed height.
The workaround uses Modernizr to check if modernflexbox is available.
If not or JS is turned off, everything will be floated.
var path = require('path');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
var merge = require('webpack-merge');
const TARGET = process.env.npm_lifecycle_event;
const PATHS = {
app: path.join(__dirname, 'dev'),
build: path.join(__dirname, 'build')
};
@imdanielch
imdanielch / tweetdeck.stylish
Created July 5, 2016 16:04
my stylish settings for tweetdeck. felt too cramped.
.is-wide-columns .column {
width: 600px;
}
.stream-item {
padding: 0px 50px;
}
class CustomError(Exception): # Name it whatever you want.
def __init__(self, value):
¦ self.value = value
def __str__(self):
¦ return repr(self.value)
#! /usr/bin/zsh
# prints out all the colors supported by the terminal
for COLOR in {0..255}
do
for STYLE in "38;5"
do
TAG="\033[${STYLE};${COLOR}m"
STR="${STYLE};${COLOR}"
echo -ne "${TAG}${STR}${NONE} "
done
@imdanielch
imdanielch / index.html
Last active July 24, 2017 23:26
custom dropdown menu
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link href="test.css" rel="stylesheet">
</head>
<body>
<ul id="ul">
<div id="selected" />