This file contains hidden or 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
| struct MyStruct; | |
| #[deriving(Clone)] | |
| struct Container { | |
| func: MyFunc, | |
| } | |
| type MyFunc = fn(&mut MyStruct); |
This file contains hidden or 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 <glib.h> | |
| #include <gtk/gtk.h> | |
| #include <libsoup/soup.h> | |
| #define PORT 42025 | |
| /* --- App --- */ | |
| typedef struct { |
This file contains hidden or 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 com.sforce.ws.ConnectorConfig; | |
| import com.sforce.ws.ConnectionException; | |
| import com.sforce.soap.tooling.SoapConnection; | |
| import com.sforce.soap.tooling.ExecuteAnonymousResult; | |
| import com.sforce.soap.enterprise.EnterpriseConnection; | |
| import com.sforce.soap.enterprise.LoginResult; | |
| import com.sforce.soap.tooling.LogInfo; | |
| import com.sforce.soap.tooling.LogCategoryLevel; | |
| import com.sforce.soap.tooling.LogCategory; | |
| import com.sforce.soap.tooling.LogType; |
This file contains hidden or 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
| /* | |
| * Rustic cat. If any command-line arguments are supplied, this | |
| * program will print out the contents of each of those files. | |
| * Otherwise, it prints out whatever is read from stdin. | |
| * | |
| * As of Rust 0.8, this failed to compile with this error: | |
| * | |
| * error: internal compiler error: unexpected failure | |
| * note: the compiler hit an unexpected failure path. this is a bug | |
| * note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues |
This file contains hidden or 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
| // Goset is a thread safe SET data structure implementation | |
| package goset | |
| import ( | |
| "fmt" | |
| "strings" | |
| "sync" | |
| ) | |
| type Set struct { |
This file contains hidden or 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
| module Main where | |
| import qualified Codec.Binary.UTF8.String as UTF | |
| import Control.Monad | |
| import Data.ByteString (ByteString) | |
| import Data.List (find) | |
| import Data.Maybe | |
| import Data.Text.Encoding | |
| import Network.HTTP | |
| import Network.URI (parseURI, URI) |
This file contains hidden or 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
| module Main where | |
| import Control.Monad | |
| import Data.List (find) | |
| import Data.Maybe | |
| import Network.HTTP | |
| import System.Exit | |
| import System.IO | |
| import Text.XML.Light |
This file contains hidden or 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
| -- | Haskell solution to www.rubyquiz.com/quiz1.html | |
| module Solitaire where | |
| import Data.Char (isAlpha, isSpace, toUpper, ord, chr) | |
| import Data.List (unfoldr, elemIndex, dropWhileEnd) | |
| import Data.Maybe (catMaybes) | |
| data Suit = Clubs | |
| | Diamonds |
This file contains hidden or 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
| /* | |
| * This is an example Linux daemon that communicates via dbus. | |
| * When run, it will daemonize and print to standard output two lines: | |
| * | |
| * 1. The PID of the daemon process, which can be used to kill it later with `kill -s SIGINT <pid>' | |
| * 2. The unique D-Bus address it will be listening to | |
| */ | |
| #include <signal.h> | |
| #include <stdio.h> |
This file contains hidden or 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
| Waf: Entering directory `/home/damien/workspace/github/gogobject/build' | |
| [ 1/184] cgo: cairo-1.0/cairo.go -> build/_cgoobj.1/_cgo_defun.c build/_cgoobj.1/_cgo_export.c build/_cgoobj.1/_cgo_export.h build/_cgoobj.1/_cgo_gotypes.go build/_cgoobj.1/_cgo_main.c build/_cgoobj.1/.._cairo-1.0_cairo.cgo1.go build/_cgoobj.1/.._cairo-1.0_cairo.cgo2.c | |
| [ 2/184] plan9c: build/_cgoobj.1/_cgo_defun.c -> build/_cgoobj.1/_cgo_defun.6 | |
| [ 3/184] cgo: gi/gi.go -> build/_cgoobj.2/_cgo_defun.c build/_cgoobj.2/_cgo_export.c build/_cgoobj.2/_cgo_export.h build/_cgoobj.2/_cgo_gotypes.go build/_cgoobj.2/_cgo_main.c build/_cgoobj.2/.._gi_gi.cgo1.go build/_cgoobj.2/.._gi_gi.cgo2.c | |
| [ 4/184] plan9c: build/_cgoobj.2/_cgo_defun.c -> build/_cgoobj.2/_cgo_defun.6 | |
| [ 5/184] go: build/_cgoobj.2/_cgo_gotypes.go build/_cgoobj.2/.._gi_gi.cgo1.go -> build/gobject/gi.6 | |
| [ 6/184] go: gogtk-demo/common.go -> build/gogtk-demo/common.6 | |
| [ 7/184] c: build/_cgoobj.1/_cgo_main.c -> build/_cgoobj.1/_cgo_main.c.26.o | |
| [ 8/184] c: build/_cgoobj.1/_cgo_export |