Skip to content

Instantly share code, notes, and snippets.

View core-code's full-sized avatar

CoreCode core-code

View GitHub Profile
diff -u new/SPPredicateEditor old/SPPredicateEditor/
Common subdirectories: new/SPPredicateEditor/Resources and old/SPPredicateEditor//Resources
diff -u new/SPPredicateEditor/SPPredicateEditor.j old/SPPredicateEditor//SPPredicateEditor.j
--- new/SPPredicateEditor/SPPredicateEditor.j 2014-02-03 11:11:18.000000000 +0100
+++ old/SPPredicateEditor//SPPredicateEditor.j 2012-06-16 07:57:24.000000000 +0200
@@ -29,13 +29,6 @@
CPArray _compoundCriteriaRoot;
}
-+ (int)version
/***************************************************************************
// 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;
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
public static string ParseToJSON(string input)
{
var export = new JSONExport ();
return export.ParseToJSON (input);
}
using System;
using Irony.Parsing;
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Linq;
namespace XLParser
{
public class JSONExport
{
#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];
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;
<?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>
#!/usr/bin/python
import cgi
import urllib2
import json
import base64
form = cgi.FieldStorage()
url = form.getvalue("url", "")
splitters = form.getvalue("splitters", "")
@core-code
core-code / SUDiskImageUnarchiver.m
Created November 16, 2021 08:50
SUDiskImageUnarchiver.m without possible hang
//
// SUDiskImageUnarchiver.m
// Sparkle
//
// Created by Andy Matuschak on 6/16/08.
// Copyright 2008 Andy Matuschak. All rights reserved.
//
#import "SUDiskImageUnarchiver.h"
#import "SUUnarchiverNotifier.h"