-
Next.js
-
Next.js Custom Server
- code 一式
https://github.com/kamiyam/typed-express-sample
- init
mkdir project
cd project
npx express-generator src
Windows10 Home
(環境によっては他のバージョンも適用されるかも
> node -v
Using D3 in a React TransitionGroup to transition elements. D3 is used purely for transitions, not for data joins. The distinction between entering and exiting elements is handled by the TransitionGroup component. See the React documentation for further information.
Alternative implementations only with D3 and using React without addons.
Note: This implementation is around 30% slower in processing 1000 circles than the other two.
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
do(d=document)-> | |
app = angular.module myApp, [] | |
app.controller "uploadCtrl", ["$scope", "$http", ($scope, $http)-> | |
$scope.$data = { | |
userId: "ID" | |
userName: "USER_NAME" | |
userMail: "[email protected]" | |
receiveMail: "[email protected]" | |
downloadPassword: "hogehoge" |
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.exports = (grunt)-> | |
pkg = grunt.file.readJSON 'package.json' | |
for taskName of pkg.devDependencies | |
if taskName.substring(0,6) == 'grunt-' | |
grunt.loadNpmTasks taskName | |
grunt.initConfig |
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
"use strict" | |
LIVERELOAD_PORT = 35729 | |
proxySnippet = require("grunt-connect-proxy/lib/utils").proxyRequest | |
mountFolder = folderMount = (connect, base) -> | |
connect["static"] require("path").resolve(base) | |
listen = 8000 | |
server = 3000 | |
module.exports = (grunt) -> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Socketer.coffee | |
do(w=window,d=document) -> | |
# ref http://qiita.com/Layzie/items/465e715dae14e2f601de | |
_is = (type, obj) -> | |
clas = Object.prototype.toString.call(obj).slice(8, -1) | |
return obj isnt undefined && obj isnt null && clas is type | |
# log output | |
log = -> |
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
do(w=window,d=document) -> | |
# log output | |
log = -> | |
if (typeof console isnt 'undefined') | |
console.log.apply(console, arguments); | |
## implements | |
class Singleton | |
constructor: ( name ) -> |
NewerOlder