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
// float->sRGB8 conversions - two variants. | |
// by Fabian "ryg" Giesen | |
// | |
// I hereby place this code in the public domain. | |
// | |
// Both variants come with absolute error bounds and a reversibility and monotonicity | |
// guarantee. They should pass D3D10 conformance testing. | |
// | |
// This is an ISPC port of https://gist.github.com/2203834 - see there for a test | |
// driver and code that computes the tables. |
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
Require Import List. | |
Inductive btree : Set := | |
| bleaf : btree | |
| bbranch : btree -> btree -> btree. | |
Fixpoint btree_id(x : btree) : btree := | |
match x with | |
| bleaf => bleaf | |
| bbranch l r => bbranch (btree_id l) (btree_id r) |
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
package akka.actor | |
import collection.mutable | |
import akka.actor.FSM.{ CurrentState, Transition, UnsubscribeTransitionCallBack, SubscribeTransitionCallBack } | |
import akka.routing.{ Deafen, Listen } | |
case object PreRestart | |
case object PostRestart | |
trait ParentNotification { thisActor: Actor ⇒ |
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
package se.fishtank; | |
import java.net.URI; | |
import java.util.Map; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.sift.Discriminator; | |
import ch.qos.logback.core.spi.ContextAwareBase; | |
public class AkkaSourceDiscriminator extends ContextAwareBase implements Discriminator<ILoggingEvent> { |
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
/* ========================================================================= | |
CurveZMQ - authentication and confidentiality for 0MQ | |
------------------------------------------------------------------------- | |
Copyright (c) 1991-2013 iMatix Corporation <www.imatix.com> | |
Copyright other contributors as noted in the AUTHORS file. | |
This is free software; you can redistribute it and/or modify it under | |
the terms of the GNU Lesser General Public License as published by | |
the Free Software Foundation; either version 3 of the License, or (at |
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
// Compiling from toplevel of built node.js repo on OSX: | |
// CC -g -o issue5564 issue5564.cc -I deps/uv/include/ \ | |
// -L out/Debug/ -luv -framework CoreFoundation -framework Carbon | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include "uv.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
helpers = require('../util').helpers | |
module.exports = Draggable = (e, containerEl, handle, dragSelector, handleSelector, component, @moveCallback, startX, startY) -> | |
items = containerEl.querySelectorAll dragSelector | |
if dragSelector == handleSelector | |
el = handle | |
else | |
handles = containerEl.querySelectorAll handleSelector | |
index = nodeIndex handles, handle | |
el = items[index] |
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(ExternalProject) | |
ExternalProject_Add(gmock | |
SVN_REPOSITORY http://googlemock.googlecode.com/svn/tags/release-1.7.0 | |
CMAKE_ARGS -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} | |
INSTALL_COMMAND "" | |
UPDATE_COMMAND "" | |
) | |
ExternalProject_Get_Property(gmock source_dir) |
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
;;;; metal/compiler.lisp | |
;;;; | |
;;;; Copyright (c) 2015 Adrian Medina | |
(in-package :metal) | |
(defparameter *metal-source-paths* | |
(asdf:system-relative-pathname *system* "src/metal/")) | |
(defun metal (pathname) |
OlderNewer