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
<html> | |
<form> | |
<select id="parent"> | |
<option value="set1">Set opt1</option> | |
<option value="set2">Set opt2</option> | |
</select> | |
<select id="child"> | |
</select> | |
</form> | |
<script> |
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
/** | |
* | |
* | |
*/ | |
import { render } from 'react-dom'; | |
import React from 'react'; | |
class SearchDictionaryFieldsComponent extends React.Component { | |
constructor(props) { | |
super(props); |
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
module ProductSample exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Http | |
import Json.Decode as Decode | |
import String | |
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
/** | |
* Structure of the translations is a simple | |
* key value storage | |
*/ | |
var L10N = { | |
"hello_kitty": "hej killing" | |
}; |
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
/** | |
* index.js | |
*/ | |
"use strict"; | |
// Require app specific CSS | |
require('./app.css'); | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>title</title> | |
</head> | |
<body> | |
<script> | |
var AB = { |
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
/** | |
* index.js | |
*/ | |
"use strict"; | |
// Require app specific CSS | |
require('./app.css'); | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; |
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
/* | |
* JavaScript Pretty Date | |
* Copyright (c) 2011 John Resig (ejohn.org) | |
* Licensed under the MIT and GPL licenses. | |
* prettyDate("2008-01-28T20:24:17Z") // => "2 hours ago" | |
* prettyDate("2008-01-27T22:24:17Z") // => "Yesterday" | |
* prettyDate("2008-01-26T22:24:17Z") // => "2 days ago" | |
* prettyDate("2008-01-14T22:24:17Z") // => "2 weeks ago" | |
* prettyDate("2007-12-15T22:24:17Z") // => undefined |
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
/** | |
* Main.js | |
*/ | |
'use strict'; | |
import React from 'react' | |
import { render } from 'react-dom' | |
const gun = Gun(location.origin +'/gun'); | |
const GUN_PATH = 'repo_42'; |
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
var express = require('express'), | |
app = express(); | |
var Gun = require('gun'); | |
var gun = Gun({ | |
file: 'data.json' | |
}); | |
gun.wsp(app); | |
app.use(express.static(__dirname)).listen(9000); |
NewerOlder