Skip to content

Instantly share code, notes, and snippets.

Hussain hussainb

  • India, Pune
Block or report user

Report or block hussainb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gustavlrsn
gustavlrsn / Layout.js
Created May 1, 2017
Example bootstrap 4 integration into Next.js, with the reactstrap package
View Layout.js
import Head from 'next/head'
import { Container } from 'reactstrap'
const Layout = (props) => (
<div>
<Head>
<title>PairHub</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" />
</Head>
@MrToph
MrToph / google-drive.js
Last active Aug 5, 2019
Google Drive API v3 fetch
View google-drive.js
import GoogleSignIn from 'react-native-google-sign-in'
const url = 'https://www.googleapis.com/drive/v3'
const uploadUrl = 'https://www.googleapis.com/upload/drive/v3'
const boundaryString = 'foo_bar_baz' // can be anything unique, needed for multipart upload https://developers.google.com/drive/v3/web/multipart-upload
let apiToken = null
@saumyasuhagiya
saumyasuhagiya / blob_image_save_fetch_node_sequelize.js
Last active Nov 4, 2019
Mysql blob image retrieval and insert operation using sequelize package of node.js
View blob_image_save_fetch_node_sequelize.js
var DATABASE_NAME = 'test_db';
var DB_USERNAME = 'abc';
var DB_PASSWORD = 'abc@123';
var Sequelize = require('sequelize');
var FS = require('fs');
var sequelize = new Sequelize(
DATABASE_NAME,
DB_USERNAME,
@longhotsummer
longhotsummer / leaflet-big-image-full.html
Created Apr 5, 2016
Full example of using leaflet to pan and zoom a big image, as described at http://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html
View leaflet-big-image-full.html
<html>
<!-- See also: http://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html -->
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"></script>
<style>
#image-map {
width: 100%;
height: 300px;
border: 1px solid #ccc;
margin-bottom: 10px;
@mikermcneil
mikermcneil / using-raw-socket-io-in-sails.js
Created Sep 17, 2013
Using raw socket.io functionality in a Sails.js controller
View using-raw-socket-io-in-sails.js
module.exports = {
/**
*
* Using raw socket.io functionality from a Sails.js controller
*
*/
index: function (req,res) {
You can’t perform that action at this time.