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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <err.h> | |
#include <netdb.h> | |
#include <time.h> | |
#include <sys/types.h> | |
#include <sys/socket.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
diff --git a/src/macim.m b/src/macim.m | |
index d4444db..515cf25 100644 | |
--- a/src/macim.m | |
+++ b/src/macim.m | |
@@ -100,7 +100,14 @@ DEFUN ("mac-toggle-input-source", Fmac_toggle_input_source, | |
} | |
else | |
{ | |
- NSString *locale = [[NSLocale currentLocale] localeIdentifier]; | |
+ NSString *locale; |
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
--- src.orig/macim.m 2011-10-05 22:36:20.000000000 +0900 | |
+++ src/macim.m 2011-10-05 22:36:40.000000000 +0900 | |
@@ -100,7 +100,14 @@ | |
} | |
else | |
{ | |
- NSString *locale = [[NSLocale currentLocale] localeIdentifier]; | |
+ NSString *locale; | |
+ NSArray *languages = [NSLocale preferredLanguages]; | |
+ if (languages != 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
;; | |
;; named - sandbox profile | |
;; Copyright (c) 2006-2007 Apple Inc. All Rights reserved. | |
;; | |
;; WARNING: The sandbox rules in this file currently constitute | |
;; Apple System Private Interface and are subject to change at any time and | |
;; without notice. The contents of this file are also auto-generated and not | |
;; user editable; it may be overwritten at any time. | |
;; | |
(version 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
NSURLResponse *response = nil; | |
NSError *error = nil; | |
NSData *d = | |
[NSURLConnection | |
sendSynchronousRequest:urlRequest | |
timeoutInterval:5.0 | |
returningResponse:&response | |
error:&error]; |
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
@interface FooDelegate : TPURLConnectionDelegate | |
//... | |
@end | |
@implementation FooDelegate | |
- (void)connection:(NSURLConnection *)connection | |
didFailWithError:(NSError *)error | |
{ | |
[super connection:connection didFailWithError:error]; | |
// my code... |
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
#!/bin/sh | |
# | |
# Written by Denis Vazhenin <[email protected]> | |
# | |
# This script was ported from Debian/Ubuntu version of start script for Gitlab: | |
# https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/init.d/gitlab | |
# | |
# PROVIDE: gitlab | |
# REQUIRE: NETWORKING SERVERS DAEMON LOGIN | |
# KEYWORD: shutdown |
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 | |
enum E { | |
case A | |
//, B | |
} | |
class C//: NSObject | |
{ | |
var e: E |
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
// ==UserScript== | |
// @name Suppresses unwanted sending with Enter key | |
// @namespace http://tempus.org | |
// @version 0.3 | |
// @description Suppresses unwanted sending with Enter key on ChatGPT. | |
// @author n-miyo | |
// @match https://chat.openai.com | |
// @match https://chat.openai.com/?model* | |
// @match https://chat.openai.com/c/* | |
// @grant none |