Skip to content

Instantly share code, notes, and snippets.

@peteboere
peteboere / jquery.alterclass.js
Created December 24, 2011 12:49
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/
"Include path not found (/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include)"
is an error you can get on Mac OS with Eclipse CDT after upgrading to XCode 4.3+. The reason this
happens is that Apple has removed the /Developer folder. This is a default value in CDT
that you can see by:
1. Right-clicking your project in the Project Explorer. Choose "Properties".
2. Click C/C++ General.
3. Select "Preprocessor Include Paths, Macros, Etc."
4. Select GNU C++ in the "Languages" pane.
5. Expand the "CDT GCC Builtin Compilter Settings".
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: