Skip to content

Instantly share code, notes, and snippets.

View angel333's full-sized avatar

Ondra Simek angel333

View GitHub Profile
@angel333
angel333 / DWM-ON-OS-X.md
Last active April 11, 2024 16:14 — forked from vangberg/DWM-ON-OS-X.md
Updated for .xinitrc.d and $USERWM, simplified

Installing and configuring dwm on OS X (tested on Mountain Lion, Mavericks)

  1. Install XQuartz.

  2. Install dwm using Homebrew (or whatever):

    brew install dwm
    
  3. Create a xinitrc.d script for dwm:

package gui;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JMenu;
@angel333
angel333 / gist:1339954
Created November 4, 2011 17:36
Odtrhávání nuly s tečkou...
// .. odtrhneme zbytecnou tecku s nulou
if (vysledek.endsWith(".0"))
vysledek = vysledek.substring(0, vysledek.length() - 2);
<html>
<head>
<script src='http://code.jquery.com/jquery-1.4.2.min.js' type='text/javascript'></script>
<script>
$(document).ready(function() {
$('#lookEditorToggler').click(function(e) {
e.preventDefault();
var output = document.body.innerHTML;
output = output.replace(/<!-- b\[(.+?)\] -->/g, '<a class="lookEditationLink">$1</a><div>');