ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains hidden or 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
| // | |
| // KSDIdlingWindow.h | |
| // | |
| // Created by Brian King on 4/13/10. | |
| // Copyright 2010 King Software Designs. All rights reserved. | |
| // | |
| // Based off: | |
| // http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
| // |
This file contains hidden or 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
| @interface UILabel (dynamicSizeMe) | |
| -(float)resizeToFit; | |
| -(float)expectedHeight; | |
| @end |
This file contains hidden or 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
| @interface UILabelStrikethrough : UILabel { | |
| int xOffset; | |
| int yOffset; | |
| int widthOffset; | |
| int stroke; | |
| UIColor* strokeColor; | |
| } | |
| @property (nonatomic) int xOffset; | |
| @property (nonatomic) int yOffset; | |
| @property (nonatomic) int widthOffset; |
This file contains hidden or 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
| For nginx, | |
| location ~* \.(eot|ttf|woff)$ { | |
| add_header Access-Control-Allow-Origin *; | |
| } | |
| Or better way inside virtual host location use, | |
| Inside location use | |
| if ($request_filename ~* ^.?/([^/]?)$) |
This file contains hidden or 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
| <!doctype html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
| <title>Twitter widget</title> |
This file contains hidden or 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
| #import <UIKit/UIKit.h> | |
| #define IS_IPHONE (!IS_IPAD) | |
| #define IS_IPAD (UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPhone) | |
| /** | |
| Provides a few methods to determine what sort of device the application is | |
| running on. Specifically, the methods make it easy to determine what sort of | |
| iPhone resolution is available: `[[UIApplication sharedApplication] isIphone3]` | |
| */ |
This file contains hidden or 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
| // | |
| // AVAsset+VideoOrientation.h | |
| // | |
| // Created by Luca Bernardi on 19/09/12. | |
| // Copyright (c) 2012 Luca Bernardi. All rights reserved. | |
| // | |
| #import <AVFoundation/AVFoundation.h> | |
| typedef enum { | |
| LBVideoOrientationUp, //Device starts recording in Portrait |
This file contains hidden or 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
| /****** Object: StoredProcedure [dbo].[GetJSON] Script Date: 5/28/2013 4:31:01 PM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| CREATE procedure [dbo].[GetJSON] | |
| ( | |
| @table_name varchar(50), |
This file contains hidden or 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
| // Requires jQuery from http://jquery.com/ | |
| // and jQuerySparklines from http://omnipotent.net/jquery.sparkline | |
| // AngularJS directives for jquery sparkline | |
| angular.module('sparkline', []); | |
| angular.module('sparkline') | |
| .directive('jqSparkline', [function () { | |
| 'use strict'; | |
| return { |
OlderNewer