Skip to content

Instantly share code, notes, and snippets.

@Beyondcow
Beyondcow / lesscolor.css
Created March 14, 2014 19:55
Less Color Functions
/*
http://www.hongkiat.com/blog/less-color-functions/
LESS provides several functions with quite descriptive keywords that we can use to manipulate colors: lighten(), darken(), saturate(), desaturate(), fadein(), fadeout(), fade() spin() and mix().
*/
@color: #5ea1d5;
@colorDark: darken(@color, 20%);
.box.darken {
@Beyondcow
Beyondcow / StopMavericksApache.txt
Created March 13, 2014 21:55
Stop apache permanently on mac Mavericks.
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
#import "base64.h"
static const char _base64EncodingTable[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static const short _base64DecodingTable[256] = {
-2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -1, -1, -2, -2,
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
-1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -2, -2, -2,
-2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, -2,
class Thread
  MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc:
  # call-seq:
  # Thread.exclusive { block } => obj
  #
  # Wraps a block in Thread.critical, restoring the original value
  # upon exit from the critical section, and returns the value of the
  # block.
  def self.exclusive

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support