- CIDocumentEnhancer
- CIGaborGradients
- CIKeystoneCorrectionCombined
- CIKeystoneCorrectionHorizontal
- CIKeystoneCorrectionVertical
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) 2018 Arvid Gerstmann. */ | |
/* This code is licensed under MIT license. */ | |
#ifndef AG_RANDOM_H | |
#define AG_RANDOM_H | |
class splitmix | |
{ | |
public: | |
using result_type = uint32_t; | |
static constexpr result_type (min)() { return 0; } |
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
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
Consider this ClojureScript code:
(defn foo []
(let [location 12345] (prn js/location.hash)))
This won't work. js/
isn't a real namespace. This code will throw an exception at runtime.
The reason is that the code expands to this JS snippet:
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
(setq lexical-binding t) | |
(defun cider-eval-pprint-to-multiline-comment-handler (buffer location arrow-prefix comment-prefix) | |
"Make a handler for evaluating and printing commented results in BUFFER. | |
LOCATION is the location at which to insert. | |
COMMENT-PREFIX is the comment prefix to use." | |
(cl-flet ((multiline-comment-handler (buffer value) | |
(with-current-buffer buffer | |
(save-excursion |
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
;; I think it would be a mistake to introduce temporal coupling to prevent typos. | |
;; The example program below lets you identify "missing" keys specs at | |
;; the time and place of your choosing, and then handle them as you | |
;; deem appropriate, without imposing those decisions on other | |
;; users of spec. | |
(require '[clojure.spec.alpha :as s] | |
'[clojure.set :as set]) |
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
module DigitalClock exposing (clock) | |
import Html exposing (Html) | |
import Html.Attributes as HA exposing (style) | |
import Html.App as App | |
import Svg exposing (..) | |
import Svg.Attributes exposing (..) | |
import Color exposing (rgb) | |
import Date as D exposing (..) |
The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.
This gist was adapted from the original at https://gist.github.com/BennettSmith/7150245, and updated to deal with Xcode 7 and iOS 9, and download protobuf version 3.0.0.
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
protobuf | |
protobuf-2.6.0 | |
protobuf-master |
NewerOlder