This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
var webpack = require("webpack"); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var lessLoader = ExtractTextPlugin.extract( | |
"css?sourceMap!less?sourceMap" | |
); | |
module.exports = { | |
cache: true, | |
entry: { bundle: "./master/client/index.jsx" }, |
import React from "react"; | |
import { Motion, StaggeredMotion, spring } from "react-motion"; | |
import { constant, range } from "lodash"; | |
const DEG_TO_RAD = Math.PI / 180; | |
const MAIN_BUTTON_DIAM = 100; | |
const CHILD_BUTTON_DIAM = 50; | |
const CHILDREN_ICONS = [ | |
"at", "linkedin", "facebook", "github", "twitter" |
import express from "express"; | |
/** | |
* Takes a route handling function and returns a function | |
* that wraps it after first checking that the strings in | |
* `reserved` are not part of `req.body`. Used for ensuring | |
* create and update requests do not overwrite server-generated | |
* values. | |
*/ | |
function checkReservedParams(routeHandler, ...reserved) { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<webview src="https://electronjs.org/" style="width: 100%; height: 100vh"> | |
</body> | |
</html> |
278c279,280 | |
< })</code></pre> | |
--- | |
> }) | |
> </code></pre> |
267a268 | |
> |
267a268 | |
> |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by git-commit with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, make this file executable. | |
# This is slightly modified from Andrew Morton's Perfect Patch. |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> | |
We are using Node.js <script>document.write(process.versions.node)</script>, |