Skip to content

Instantly share code, notes, and snippets.

View Yusadolat's full-sized avatar
🏠
Working from home

Yusuf Adeyemo Yusadolat

🏠
Working from home
View GitHub Profile
> webpack-dev-server --port 8080 --json --progress
module.js:472
throw err;
^
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
<html>
<head>
<title>Look at WebSQL</title>
<script>
// Through the code below remember essentialy there are just 3 core methods we tend to use
// openDatabase
// transaction
// executeSql
// Opening a connection
// window.openDatabase( database name , version , database description, estimated size );
@Yusadolat
Yusadolat / 1.json
Created August 27, 2016 10:53 — forked from SeanJA/1.json
a simple json file migration for the drupal 7 (maybe 6?) migrate module
{
"title": "this is a title",
"content": "this is a body",
"date": "2009-01-01",
"url":"http://oldsite.com/123/test",
"image": "test.jpg",
"id": 1
}
@Yusadolat
Yusadolat / DropZone.jsx
Created August 17, 2016 16:29 — forked from pizzarob/01_DropZone.jsx
HTML5 Drag and Drop React Component
import React, {PropTypes} from 'react';
import classNames from 'classnames';
class BatchDropZone extends React.Component {
static propTypes = {
// function that recieves an array of files
receiveFiles: PropTypes.func.isRequired,
@Yusadolat
Yusadolat / gist:80c548ecb3850ef2cb81978418dfa884
Created May 6, 2016 10:15 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array