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
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
import sys | |
from functools import cmp_to_key | |
def cmp_items_inner(a, b): | |
if len(a) > 0 and len(b) == 0: | |
return 1 | |
elif len(a) == 0 and len(b) > 0: |
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
// | |
// SUDiskImageUnarchiver.m | |
// Sparkle | |
// | |
// Created by Andy Matuschak on 6/16/08. | |
// Copyright 2008 Andy Matuschak. All rights reserved. | |
// | |
#import "SUDiskImageUnarchiver.h" | |
#import "SUUnarchiverNotifier.h" |
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
#!/usr/bin/python | |
import cgi | |
import urllib2 | |
import json | |
import base64 | |
form = cgi.FieldStorage() | |
url = form.getvalue("url", "") | |
splitters = form.getvalue("splitters", "") |
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" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>$(DEVELOPMENT_LANGUAGE)</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIconFile</key> | |
<string></string> |
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
static void enable_tracks(AVFormatContext *s) | |
{ | |
MOVMuxContext *mov = s->priv_data; | |
int i; | |
int enabled[AVMEDIA_TYPE_NB]; | |
int first[AVMEDIA_TYPE_NB]; | |
for (i = 0; i < AVMEDIA_TYPE_NB; i++) { | |
enabled[i] = 0; | |
first[i] = -1; |
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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool | |
{ | |
BOOL broken = FALSE; | |
NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtURL:[NSURL fileURLWithPath:@"~".stringByExpandingTildeInPath] | |
includingPropertiesForKeys:@[NSURLIsRegularFileKey, NSURLIsPackageKey] | |
options:(NSDirectoryEnumerationOptions)0 errorHandler:nil]; |
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
using System; | |
using Irony.Parsing; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using System.Linq; | |
namespace XLParser | |
{ | |
public class JSONExport | |
{ |
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
public static string ParseToJSON(string input) | |
{ | |
var export = new JSONExport (); | |
return export.ParseToJSON (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
Process: The Unarchiver [9835] | |
Path: /Applications/The Unarchiver.app/Contents/MacOS/The Unarchiver | |
Identifier: cx.c3.theunarchiver | |
Version: 3.9.1 (3.9.1) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: The Unarchiver [9835] | |
User ID: 501 |
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
/*************************************************************************** | |
// PrintSMARTData - Prints S.M.A.R.T data // mostly from apple saple code | |
//*************************************************************************** | |
static IOReturn PrintSMARTData(io_service_t service, char *smart) | |
{ | |
IOCFPlugInInterface **cfPlugInInterface = NULL; | |
IOATASMARTInterface **smartInterface = NULL; | |
HRESULT herr = S_OK; | |
IOReturn err = kIOReturnSuccess; |
NewerOlder