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 React from "react"; | |
import { StyleSheet, Text, View, Image } from "react-native"; | |
export default class ToggleButton extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
</View> | |
); |
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 React from "react"; | |
import { StyleSheet, Text, View, Image } from "react-native"; | |
export default class Schedule extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Image style={styles.image} source={require("../assets/hero.png")}> | |
<Image style={styles.logo} source={require("../assets/logo.png")} /> | |
<Text style={styles.title}>React Europe Conference</Text> |
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 React from "react"; | |
import { StyleSheet, Text, View, Image } from "react-native"; | |
import EventDetails from "./screens/EventDetails"; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<EventDetails /> | |
</View> |
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 React from "react"; | |
import { StyleSheet, Text, View, Image } from "react-native"; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<View style={styles.detailsContainer}> | |
<Text style={styles.title}>Conference Keynote</Text> | |
<Text style={styles.subtitle}>Thursday, May 18</Text> |
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
package main | |
import ( | |
"github.com/codegangsta/martini" | |
"github.com/gorilla/websocket" | |
"log" | |
"net" | |
"net/http" | |
"sync" | |
) |
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
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |
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
$ DEBUG=* yo angular | |
generators:environment Resolve namespaces for /usr/lib/node_modules/yo/node_modules/yeoman-generator/lib/generators/generator/index.js: :usr:libyo:node_modules:yeoman-generator:generator +0ms | |
generators:environment Registered generator (/usr/lib/node_modules/yo/node_modules/yeoman-generator/lib/generators/generator/index.js) +1ms | |
generators:environment Lookup *:* +0ms | |
generators:environment Looking in . with filepath */* +1ms | |
generators:environment Globing for generator *:* with pattern +(generator-)*/*/index.js (cwd: .) +0ms | |
generators:environment Globing for generator *:* with pattern +(generator-)*/lib/generators/**/index.js (cwd: .) +1ms | |
generators:environment Looking in /tmp/node_modules with filepath */* +1ms | |
generators:environment Globing for generator *:* with pattern +(generator-)*/*/index.js (cwd: /tmp/node_modules) +0ms | |
generators:environment found generator-angular/app/index.js, trying to register +2ms |
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 code: | |
<form method='post' action='/files' enctype="multipart/form-data"> | |
<input type='file' name='files' multiple> | |
<input type='submit' name='upload'> | |
</form> | |
// node code: | |
app.post('/files', function(req, res, next){ |
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
at [object Object].open (/var/www/dev.myapp.com/master/node_modules/mongoose/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:106:14) | |
at Stream._open (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:164:15) | |
at Stream.write (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:85:10) | |
at EventEmitter.onData (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/lib/index.js:91:8) | |
at EventEmitter.emit (events.js:67:17) | |
at MultipartParser.onPartData (/var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/incoming_form.js:311:10) | |
at /var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/multipart_parser.js:102:31 | |
at /var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_m |
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
at [object Object].open (/var/www/dev.attachly.com/master/node_modules/mongoose/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:106:14) | |
at Stream._open (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:164:15) | |
at Stream.write (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:85:10) | |
at EventEmitter.onData (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/lib/index.js:91:8) | |
at EventEmitter.emit (events.js:67:17) | |
at MultipartParser.onPartData (/var/www/dev.attachly.com/node_modules/attachly/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/incoming_form.js:311:10) | |
at /var/www/dev.attachly.com/node_modules/attachly/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/multipart_parser.js:102:31 | |
at /var/www/dev.attachly.com/node_modules/attachly/node_mo |