This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LEFT_TRIGGER=1366; | |
BOTTOM_TRIGGER=768; | |
while :; | |
do sleep 0.10; | |
eval $(xdotool getmouselocation --shell); | |
# | |
if [ $X -eq $LEFT_TRIGGER ] && [ $Y -gt $BOTTOM_TRIGGER ]; then | |
xdotool mousemove 1362 764 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set encoding=utf-8 | |
scriptencoding utf-8 | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"""--- PLUGIN SECTION BEGIN ---""" | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'kien/ctrlp.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author vga@decatime.org | |
* @license MIT | |
* | |
* 2014-11-08 | |
*/ | |
module.exports = function(grunt) | |
{ | |
require('load-grunt-tasks')(grunt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Might as well ask for password up-front, right? | |
sudo -v | |
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing. | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
# Example: do stuff over the next 30+ mins that requires sudo here or there. | |
function wait() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CalendarUtils | |
##--------------------------------------------------------------------------- | |
@padNumber = (count, value) -> | |
svalue = value.toString() | |
spad = Array(count - svalue.length + 1).join '0' | |
# return the value | |
spad + svalue | |
##--------------------------------------------------------------------------- | |
@getNextMonth = (year, month) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to be able to screencast at a good size for delivery on youtube (linux-mint is the name of the VM): | |
$ vboxmanage guestproperty set linux-mint /VirtualBox/GuestAdd/Vbgl/Video/SavedMode 1280x720x32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project> | |
<!-- <meta /> | |
Use meta nodes to set metadata for your application. The description is ignored | |
on most targets, but is useful for packaging like Chrome Apps or Opera Widgets. | |
For compatibility with Android and webOS, the package name must include at least |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com; | |
import flash.display.Shape; | |
import format.SVG; | |
import org.decatime.ui.component.BaseContainer; | |
import org.decatime.ui.layout.*; | |
class Testin extends BaseContainer { |