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
<script src="https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.min.js"></script> | |
<script> | |
$(function () { | |
ZeroClipboard.config({ swfPath: "https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.swf" }); | |
client = new ZeroClipboard($(".copy-button")); | |
}) | |
</script> |
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"?> | |
<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<!-- | |
In the example below, the "SetAttributes" transform will change the value of | |
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator | |
finds an attribute "name" that has a value of "MyDB". | |
<connectionStrings> |
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
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results | |
bin | |
obj | |
#include nuget executable |
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
/// | |
/// jqury.plugintemplate.js | |
/// A short explanation of what it does right here | |
/// | |
/// | |
/// Intended HTML structure for targeted complex form (if applicable) | |
/// .postal-code-form - outer wrapper | |
/// .locationInputs - wrapper around all inputs | |
/// .postal-input - postal code input |
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
/* Drop all non-system stored procs */ | |
DECLARE @name VARCHAR(128) | |
DECLARE @SQL VARCHAR(254) | |
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name]) | |
WHILE @name is not null | |
BEGIN | |
SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']' | |
EXEC (@SQL) |
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
-(void)exampleAsyncMethod | |
{ | |
// This method can have a dedicated queue for all instances on it | |
// Or maybe per instance if downloadQueue were instead a class variable | |
static NSOperationQueue *downloadQueue = nil; | |
if(!downloadQueue) { | |
downloadQueue = [[NSOperationQueue alloc] init]; | |
} | |
// Capture the queue that called us |
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
// | |
// SimpleFilesCache.h | |
// | |
#import <Foundation/Foundation.h> | |
/// | |
/// A static class for basic management of the NSCachesDirectory contents | |
/// | |
@interface SimpleFilesCache : NSObject |
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
#ifndef Blocks_h | |
#define Blocks_h | |
#import <Foundation/Foundation.h> | |
typedef void (^VoidBlock)(); | |
typedef BOOL (^ReturnBoolBlock)(); | |
typedef void (^DictionaryBlock)(NSDictionary *dictionary); |
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
// | |
// SimpleNotifier.h | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^VoidBlock)(); | |
/// | |
/// A simple notification to-many observers |
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
/// | |
/// Category to help with animating UIView instances | |
/// | |
@implementation UIView (Animation) | |
-(void)translateX:(float)x andY:(float)y | |
{ | |
CGPoint center = self.center; | |
center.x += x; | |
center.y += y; |