Skip to content

Instantly share code, notes, and snippets.

@prenagha
prenagha / fluid-inotes.css
Created January 14, 2013 17:35
CSS to use as a Userstyles file within a custom Fluid app wrapper for Lotus Notes iNotes. Will show overlay please wait after login. http://fluidapp.com see also https://gist.github.com/4531725
/* Start by setting display:none to make this hidden.
Then we position it in relation to the viewport window
with position:fixed. Width, height, top and left speak
speak for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
div.loading {
display: block;
position: fixed;
z-index: 1000;
@prenagha
prenagha / fluid-inotes.js
Created January 14, 2013 17:30
Javascript to use as a Userscript file within a custom Fluid app wrapper for Lotus Notes iNotes # Will update the app's doc badge with the current unread count # Will trigger alert sound and send a growl notification when new mail arrives http://fluidapp.com See also https://gist.github.com/4531763
// put this file somewhere on your Mac
// download jquery and put it there as well
// then in Fluid, under the Userscripts option set the path pattern to match your
// inotes UL, then add the below, tweak for your path
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/jquery-1.8.3.min.js");
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/fluid-inotes.js");
//
// Note the auto userid and password filling this script does. Obviously adjust to
// your info. Line ~108 below.
@tomohiro
tomohiro / install-command-line-tools-for-xcode.sh
Created July 5, 2012 14:26
A shell script for installing some applications on OS X
#!/bin/sh
# This script will install Command Line Tools for Xcode on a fresh installation of OS X.
# Usage: curl https://raw.github.com/gist/3053979/install-command-line-tools-for-xcode.sh | sh
DMG='command_line_tools_for_xcode_june_2012.dmg'
cd $HOME/Downloads
if [ ! -f ./$DMG ]; then
echo 'Command Line Tools for Xcode not downloaded.'
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@choonkeat
choonkeat / loremipsumizer.js
Last active September 30, 2018 22:30
Bookmarklet to turn any webpage back into a wireframe with "lorem ipsum" text. elements ".brand,.nav,.page-title,.btn,.pagination,.breadcrumb,form label,h1,th" are left intact by default (if you have jQuery on the page) because sometimes we want the basic navigations and buttons), but applying the script again will proceed to anonymize them rega…
/*
Turn any webpage back into a wireframe with "lorem ipsum" text.
1. Bookmark this page
2. Edit the bookmark, and change the link into
javascript:(function(u){ c=document;b=c.body;s=c.createElement('script');s.src=u+'?r='+(new Date()).getTime();b.appendChild(s);})('https://raw.github.com/gist/585708/ac1961130915ed2aef0e67bc97d35ead08513aba/loremipsumizer.js');void(0);
3. Visit any webpage
4. Click on the bookmark