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
#include <iostream> | |
#include <cstdlib> | |
typedef int handle_type; | |
namespace uEye | |
{ | |
class uEye |
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
const expr = ["min", ["max", 0.5, ["toto", 1, 2]],1]; | |
const env = { | |
'eegle:min': Math.min, | |
'eegle:max': Math.max, | |
'UI:COMPONENT': function (x) { | |
console.log('Component called', x); | |
return 1; | |
} | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const addTodo = todoItem => {type: 'ADD_TODO', payload: {todoItem}}; |
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
open Util; | |
[@bs.module "semantic-ui-react"] external button : ReasonReact.reactClass = "Button"; | |
let make = (children) => | |
ReasonReact.wrapJsForReason( | |
~reactClass=button, | |
children | |
); |
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
export function compose(...fns) { | |
if (fns.length === 0) { | |
return fns; | |
} | |
return value => { | |
const g = fnsAcc => { | |
if (fnsAcc.length === 1) { | |
return fnsAcc[0](value); | |
} | |
const [head, ...tail] = fnsAcc; |
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
const state = { | |
dataset: [{ | |
name: 'dataset1', | |
template: 0 | |
}, { | |
name: 'dataset2', | |
template: 1 | |
}], | |
template: { | |
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
def make(s) do | |
case (s) do | |
[line, sens | rest] -> [{line, sens} | make(rest)] | |
[] -> [] | |
end | |
end |
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
const matchString = (s, patterns) => { | |
if (patterns.length === 0) { | |
throw new Error('Not exhaustive string matching'); | |
} | |
const [matching, ...rest] = patterns; | |
const [re, fn] = matching; | |
if (re.test(s)) { | |
const matches = re.exec(s); | |
return matches ? fn(...matches) : fn(); | |
} |
OlderNewer