Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
export enum MongoErrorCode { | |
OK = 0, | |
InternalError = 1, | |
BadValue = 2, | |
OBSOLETE_DuplicateKey = 3, | |
NoSuchKey = 4, | |
GraphContainsCycle = 5, | |
HostUnreachable = 6,// Categories: NetworkError, RetriableError | |
HostNotFound = 7,// Categories: NetworkError, RetriableError | |
UnknownError = 8, |
// https://github.com/npm/npm/blob/master/lib/utils/parse-json.js | |
'use strict' | |
var parseJSON = module.exports = function (content) { | |
return JSON.parse(stripBOM(content)) | |
} | |
parseJSON.noExceptions = function (content) { | |
try { |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// | |
// Singleton_Template.h | |
// | |
// Created by Alex Lee on 3/11/15. | |
// | |
#undef AS_SINGLETON | |
#define AS_SINGLETON \ | |
+ (instancetype)sharedInstance; \ |
#pragma mark - Magic | |
// Need for supporting orientation when not supported in host app plist. | |
// Swizzle original -application:supportedInterfaceOrientationsForWindow: to change supported orientation in runtime. | |
-(void) swizzleSupportedInterfaceOrientationsForWindow | |
{ | |
Class applicationDelegateClass = [[UIApplication sharedApplication].delegate class]; | |
Class sdkClass = [self class]; | |
SEL originalSelector = @selector(application:supportedInterfaceOrientationsForWindow:); | |
SEL swizzledSelector = @selector(las_application:supportedInterfaceOrientationsForWindow:); |
// This code accompanies a blog post: http://chris.eidhof.nl/posts/json-parsing-in-swift.html | |
// | |
// As of Beta5, the >>= operator is already defined, so I changed it to >>>= | |
import Foundation | |
let parsedJSON : [String:AnyObject] = [ | |
"stat": "ok", | |
"blogs": [ |
I was chasing down another issue (slow "Save As") and thought these two issues may have been related (with QuickLook being the common broken link). Unfortunately, my "Save As" dialog is still miserably slow on the initial load; but IconServicesAgent hasn't gone above 30MB and he rarely makes an appearance in the Console!
Some of these steps may not be necessary, but here are all of the steps I took that inadverdently put IconServicesAgent back in its place. Note: all commands are a single-line, if they appear to be multiple that's just the forum formatting.
Check for any QuickLooks related .plist files. In a terminal: mdfind com.apple.quicklook. -name .plist
I only had files at the system level (specifically within /System/Library/LaunchAgents/). If you have others, modify the directions below to take that into account (re-introducing plist files from the system level back up to the user).
Make some temporary directories to store these plist files, just in case: mkdir ~/tmp-quicklook
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>
Some improvements have been made for parser and lexer grammars in Jison 0.3 (demonstrated in the FlooP/BlooP example below.)
For lexers:
%options flex case-insensitive
flex
: the rule with the longest match is used, and no word boundary patterns are addedcase-insensitive
: all patterns are case insensitive