Skip to content

Instantly share code, notes, and snippets.

View coldnew's full-sized avatar
💭
I may be slow to respond.

Yen-Chin,Lee coldnew

💭
I may be slow to respond.
View GitHub Profile
;;; org-html5presentation.el --- HTML5 Presentation export for Org-mode
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
;; Free Software Foundation, Inc.
;; modified by leiyue for https://code.google.com/p/html5slides/
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.ogr
#This is how I got some of the window management gestures working on linux mint with the cinnamon frontend:
#install your stuff
sudo apt-get install xorg-xserver-mtrack xbindkeys xdotool
#fix mtrack conf
sudo mv /usr/share/X11/xorg.conf.d/50-mtrack.conf /usr/share/X11/xorg.conf.d/60-mtrack.conf
#configure xbindkeys
(
@coldnew
coldnew / gist:285654e41675d20e6d88
Last active August 29, 2015 14:04 — forked from jmvrbanac/gist:9963882
Install python-launchpadlib in Gentoo
# I use following command to install launchpadlib in Gentoo
pip install launchpadlib==1.10.2 --allow-external launchpadlib --allow-unverified launchpadlib --allow-external lazr.authentication --allow-unverified lazr.authentication
pip install lazr.restfulclient>=0.9.19 --allow-external lazr.authentication
# install wadllib (don't know why install by pip failed)
easy_install wadllib
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using DBus;
namespace IPChangerPrototype
{
public enum Method
From dac3e3b75f117dede7aa577d48fc10efb5a53dd1 Mon Sep 17 00:00:00 2001
From: Erik Larsson <erik@ortogonal.com>
Date: Thu, 30 Oct 2014 10:49:03 +0100
Subject: [PATCH] Add fix to get QtWayland Compositor running on iMX6.
This patch is not really done yet, it's just some test.
Change-Id: If57be6d26b3d56a772db73d29cede6215f033a80
Signed-off-by: Erik Larsson <erik@ortogonal.com>
---
;; use `frame-bufs.el' to mimic perspective feature
(idle-require 'frame-bufs)
(defun frame-bufs-switch-buffer ()
"Switch buffer, within buffers associated with current frame (`frame-bufs-buffer-list')"
(interactive)
(if (and (fboundp 'frame-bufs-mode)
frame-bufs-mode)
(let* ( (buffers (mapcar 'buffer-name (frame-bufs-buffer-list (selected-frame))))
# gcc-4.8
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install openocd
openocd --version # homebrew release of openocd supports most jtag adapters (ie stlink2)
wget "https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2"
cd ~/Downloads
tar -xzvf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
sudo cp -R gcc-arm-none-eabi-4_8-2013q4 /usr/local/
/usr/local/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-gcc --version # test
/**
* PhantomJS script to capture/render screenshots of the slides of a Reveal.js powered slideshow.
*/
var page = require('webpage').create();
var args = require('system').args;
// Get url to render from command line.
var url;
if (args.length < 2) {
From 4a3bb99fe5eecd06e77f4fedb5729466df09750f Mon Sep 17 00:00:00 2001
From: Ilya Grigorik <ilya@igvita.com>
Date: Fri, 18 May 2012 06:41:34 +0800
Subject: [PATCH] add outbound click tracking + time on slide analytics
plugins for GA
---
js/analytics/outbound-clicks.js | 102 +++++++++++++++++++++++++++++++++++++++
js/analytics/time-on-slide.js | 25 ++++++++++
js/slide-deck.js | 5 ++
angular.module('yourModule')
.directive('tabsSwipable', ['$ionicGesture', function($ionicGesture){
//
// make ionTabs swipable. leftswipe -> nextTab, rightswipe -> prevTab
// Usage: just add this as an attribute in the ionTabs tag
// <ion-tabs tabs-swipable> ... </ion-tabs>
//
return {
restrict: 'A',
require: 'ionTabs',