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
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2' | |
md5 'a673c163b4714362b94ff6096e4d784a' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
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/nsterm.m b/src/nsterm.m | |
index a45792f..ee5a71b 100644 | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -4393,6 +4393,9 @@ ns_term_shutdown (int sig) | |
{ | |
NSTRACE (applicationDidFinishLaunching); | |
[NSApp setServicesProvider: NSApp]; | |
+ | |
+ [NSApp setPresentationOptions:NSFullScreenWindowMask]; |
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
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"log" | |
"net/http" | |
) | |
type Set struct { |
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
from cts.inventory import BagList, Bag | |
def accepted_on(bag): | |
accepted_on = None | |
for event in bag.events: | |
if event.type in ("BagAcceptedEvent",): #, "ReconEvent"): | |
accepted_on = event.end | |
if event.type=="BagRejectedEvent" or event.type=="BagCancelledEvent": | |
accepted_on = None # clear accepted_on if it's been later |
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
package main | |
// #cgo LDFLAGS: -lawj2k | |
// #include <j2k.h> | |
import "C" | |
import ( | |
"unsafe" | |
"log" | |
"flag" |
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
package main | |
import ( | |
"log" | |
"os" | |
"time" | |
) | |
func setLed(led string, value []byte) { | |
file, err := os.OpenFile(led+"/brightness", os.O_WRONLY, 0666) |
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
package main | |
import ( | |
"bufio" | |
"compress/gzip" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"os" |
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
package main | |
import ( | |
"bufio" | |
"compress/gzip" | |
"fmt" | |
"log" | |
"runtime" | |
"time" |
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
package main | |
// #cgo LDFLAGS: -lopenjp2 | |
// #include <stdio.h> | |
// #include <openjpeg-2.0/openjpeg.h> | |
import "C" | |
import ( | |
"errors" | |
"fmt" |
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
package main | |
import ( | |
"io" | |
"log" | |
"os" | |
"os/exec" | |
"path" | |
"strings" | |
"time" |
OlderNewer