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
{- Released as "All Rights Reserved" | |
until further notice/application of a formal license -} | |
module Main where | |
import System.Environment | |
import Control.Monad | |
import System.Exit | |
main :: IO () | |
main = getArgs >>= parse >>= putStr |
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
/** | |
* $ git clone --recursive https://github.com/linaer-rpc/linear-cpp /path/to | |
* $ cd /path/to/linear-cpp | |
* $ ./bootstrap && ./configure && make | |
* $ cp /this/foo.cpp /path/to/linear-cpp/sample | |
* $ cd sample | |
* $ g++ -I ../include -I ../deps/msgpack/include -o foo foo.cpp ../src/.libs/liblinear.a ../deps/libtv/src/.libs/libtv.a ../deps/libtv/deps/libuv/.libs/libuv.a | |
* $ ./foo | |
*/ |
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
all: test | |
ci: depclean test doc | |
PKG_DESCRIPTION = example.cabal | |
DEP = .cabal-sandbox | |
CONFIGURE = dist/setup-config | |
ifndef PREFIX | |
PREFIX = /usr/local |
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/bash | |
echo -ne "\000\000\000\000" >&$1 | |
echo -ne "\024\000\000\000" >&$1 | |
echo -n "NOP FINISHED STARTUP" >&$1 | |
echo -ne "\001\000\000\000" >&$1 | |
echo -ne "\000\000\000\000" >&$1 | |
echo -ne "\011\000\000\000" >&$1 | |
echo -n "echo Test" >&$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
/** | |
* Copyright (c) 2006, Nicolas Hillegeer | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright | |
* notice, this list of conditions and the following disclaimer in the |
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
/* list.html */ | |
<p class="marquee"><a id="movie.mp4" onclick="saveURI(this.id);" href="videoView.html">A stunning movie!</a></p> | |
/* */ | |
/* loader.html */ | |
<div id="videoList"/> | |
<script> | |
function saveURI(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
https://www.kenneth-truyers.net/2013/04/27/javascript-namespaces-and-modules/ | |
https://hungred.com/how-to/tutorial-function-function-javascript/ | |
http://stackoverflow.com/questions/19872917/how-to-make-a-dot-function-in-javascript | |
http://stackoverflow.com/questions/12588655/jasmine-using-function-with-a-dot-in-the-name |
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
Cu.import('resource://gre/modules/ctypes.jsm') | |
var nixtypesInit = function() { | |
// BASIC TYPES (ones that arent equal to something predefined by me) | |
this.ATOM = ctypes.unsigned_long; | |
this.BOOL = ctypes.int; | |
this.CHAR = ctypes.char; | |
this.GDKDRAWABLE = ctypes.StructType('GdkDrawable'); | |
this.GDKWINDOW = ctypes.StructType('GdkWindow'); | |
this.DISPLAY = new ctypes.StructType('Display'); |
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
Cu.import('resource://gre/modules/ctypes.jsm'); | |
function doit() { | |
var _libc = ctypes.open('libc.so.6'); | |
var _x11 = ctypes.open('libX11.so.6'); | |
var popen = _x11.declare('popen', ctypes.default_abi, ctypes.voidptr_t, // Return int | |
ctypes.char.ptr, // Param1 const char *command | |
ctypes.char.ptr // Param1 const char *command |
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
Cu.import('resource://gre/modules/ctypes.jsm') | |
var wintypesInit = function() { | |
// BASIC TYPES (ones that arent equal to something predefined by me) | |
this.BOOL = ctypes.bool; | |
this.HWND = ctypes.voidptr_t; | |
this.INT = ctypes.int; | |
// CONSTANTS | |
this.SW_HIDE = 0; |
OlderNewer