Skip to content

Instantly share code, notes, and snippets.

View leoncamel's full-sized avatar
Focusing

Xiaolin Zhang leoncamel

Focusing
  • Beijing
View GitHub Profile
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 77e5675..759080a 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -382,17 +382,12 @@ _GL_WARN_ON_USE (dup3, "dup3 is unportable - "
# if !@HAVE_DECL_ENVIRON@
/* Set of environment variables and values. An array of strings of the form
"VARIABLE=VALUE", terminated with a NULL. */
-# if defined __APPLE__ && defined __MACH__
-# include <crt_externs.h>
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index df0ddd7..c576f02 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -930,6 +930,10 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
;;; win-switch.el --- fast, dynamic bindings for window-switching/resizing
;; Copyright (C) 2011, 2012 Christopher R. Genovese, all rights reserved.
;; Author: Christopher Genovese <[email protected]>
;; Maintainer: Christopher R. Genovese <[email protected]>
;; URL: http://www.stat.cmu.edu/~genovese/emacs/win-switch/
;; Version: 1.0.2
;; Update#: 12
require 'formula'
class Highlight < Formula
url 'http://www.andre-simon.de/zip/highlight-3.8.tar.bz2'
homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html'
sha1 '007a008f1846485e86ad9347f98f69a22afeb718'
depends_on 'boost'
depends_on 'lua'
brew --config
HOMEBREW_VERSION: 0.9
HEAD: 28a2dfd8b6fa0225bc6cc8d196652ec0c87e39b9
HOMEBREW_PREFIX: /Users/leoncamel/bin/homebrew
HOMEBREW_CELLAR: /Users/leoncamel/bin/homebrew/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
diff -urN emacs-24.1/lisp/term/ns-win.el emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el
--- emacs-24.1/lisp/term/ns-win.el 2012-05-14 21:00:02.000000000 +0900
+++ emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el 2012-06-13 00:52:11.000000000 +0900
@@ -930,7 +930,11 @@
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
-
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
@leoncamel
leoncamel / gist:2942254
Created June 16, 2012 19:01
build gcc on mac lion
#!/bin/sh
# TODO:
# 1: Could not find the frame base for "main(int, char**)".
# gdb ./hello
# GNU gdb (GDB) 7.4
# Copyright (C) 2012 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law. Type "show copying"
@leoncamel
leoncamel / gist:2943625
Created June 17, 2012 06:04
my brew installation list
#!/bin/sh
# GNU coreutils
brew install coreutils
brew install findutils
brew install binutils
brew install patchutils
# gdb & gcc
brew install gdb
diff --git a/GHC/Integer.hs b/GHC/Integer.hs
index c9b50a7..8fd41d9 100644
--- a/GHC/Integer.hs
+++ b/GHC/Integer.hs
@@ -28,6 +28,7 @@ module GHC.Integer (
eqInteger, neqInteger, absInteger, signumInteger,
leInteger, gtInteger, ltInteger, geInteger, compareInteger,
divModInteger, quotRemInteger, quotInteger, remInteger,
+ modInteger, divInteger,
encodeFloatInteger, decodeFloatInteger, floatFromInteger,
@leoncamel
leoncamel / gist:6076222
Last active December 20, 2015 05:09
Serialization in C# driver of MongoDB
using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;
using MongoDB.Driver;
namespace TestMongoDot
{
class MyEntity