On trying to start mysql.server start
./usr/local/bin/mysql.server: line 264: kill: (12262) - No such process ERROR!
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:GridSample" | |
x:Class="GridSample.GridSamplePage"> | |
<Grid Padding="20" VerticalOptions="CenterAndExpand"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="40" /> | |
<RowDefinition Height="40" /> |
import React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
import { Util } from 'expo' | |
export default class App extends React.Component { | |
state = { | |
updated: false, | |
} | |
componentWillMount() { | |
Util.addNewVersionListenerExperimental(() => { |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import classNames from 'classnames'; | |
const ANIMATION_DURATION = 1000; | |
class BatchDropZone extends React.Component { | |
static propTypes = { |
'use strict'; | |
// replace username and password with speech to text credentials | |
// audio.wav can be found here: https://github.com/watson-developer-cloud/nodejs-wrapper/blob/master/test/resources/audio.wav?raw=true | |
var watson = require('watson-developer-cloud'), | |
fs = require('fs'); | |
var speechToText = watson.speech_to_text({ | |
password: '<username>', | |
username: '<password>', |
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
function construct() { | |
if ( this && typeof this.init === 'function' ) { | |
this.init.apply( this, arguments ); | |
} | |
} | |
function extend( obj ) { | |
var proto = Object.create( this && this.prototype || {} ), | |
type = typeof obj, | |
key; |