Skip to content
View logic-model.js
import {Observable as O} from 'rx';
import I from 'immutable';
import {
expressionFromJson,
collectIdentifiers,
collectSubExpressions,
evaluateAll,
} from '../lib/expression';
View introrx.md
View isolation.js
import Cycle from '@cycle/core';
import isolate from '@cycle/isolate';
import {makeDOMDriver, div} from '@cycle/dom';
import {Observable as O} from 'rx';
const Canvas = ({DOM, content$}) => {
const intent = (D) =>
({
toggle$: D
.select('.clickableBackground')
View cycle-dom-svg.js
'use strict';
var isArray = require('x-is-array');
// START Cycle.js-specific code >>>>>>>>
var h = require('@cycle/dom').h;
// END Cycle.js-specific code <<<<<<<<<<
var SVGAttributeNamespace = require('virtual-dom/virtual-hyperscript/svg-attribute-namespace');
var attributeHook = require('virtual-dom/virtual-hyperscript/hooks/attribute-hook');
View Material-Theme-Lighter.sublime-theme
[
{
"class": "sidebar_label",
"color": [135, 145, 165],
},
{
"class": "sidebar_label",
"parents": [{"class": "tree_row", "attributes": ["expandable"]}],
"color": [145, 165, 175],
View write_to_file.php
<?php
file_put_contents(__DIR__ . '/test.txt', "Hello World");
?>
View VectorMath.java
// Only scalar values, both for parameters and return values.
// Calculation must be split into 2 methods. Ugly code, duplicate calculations.
public final class VectorMath {
public static double getRotatedX(final double x, final double y,
final double angle) {
return x * Math.cos(angle) - y * Math.sin(angle);
}
View Main.java
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import javax.swing.Box;
View after-aab22
Running Ball Drop
Ball Drop (10 steps, 10 solve loops) : 27 ms (370.3703703703704 steps/second)
Checksum: -1.8194444444444444
Ball Drop (10 steps, 30 solve loops) : 10 ms (1000.0 steps/second)
Checksum: -1.8194444444444444
Ball Drop (100 steps, 10 solve loops) : 39 ms (2564.102564102564 steps/second)
Checksum: -30.69444444444442
View with vector_math
Running Ball Drop
Ball Drop (10 steps, 10 solve loops) : 23 ms (434.7826086956522 steps/second)
Checksum: -1.8194442838430405
Ball Drop (10 steps, 30 solve loops) : 9 ms (1111.111111111111 steps/second)
Checksum: -1.8194442838430405
Ball Drop (100 steps, 10 solve loops) : 42 ms (2380.9523809523807 steps/second)
Checksum: -30.694456100463867
Something went wrong with that request. Please try again.