Skip to content

Instantly share code, notes, and snippets.

View gauravt's full-sized avatar

Gaurav Tewari gauravt

View GitHub Profile
@hootlex
hootlex / laravellocal.md
Last active June 3, 2024 10:04
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@mprajwala
mprajwala / import_csv_to_mongo
Last active July 23, 2023 20:07
Store CSV data into mongodb using python pandas
#!/usr/bin/env python
import sys
import pandas as pd
import pymongo
import json
def import_content(filepath):
mng_client = pymongo.MongoClient('localhost', 27017)
/*
Plugin Name: TM Example
Plugin URI: http://ditio.net
Description: TextMagic Example
Author: Greg Winiarski
Version: 0.01
Author URI: http://ditio.net
TextMagic SMS delivery example.
@damienalexandre
damienalexandre / PrismCarpet.ino
Last active November 7, 2019 17:46
Arduino code making an HTTP request to Google Analytics and returning the status code. Replace `YOURGAID-HERE` by your GA tag.
#include <SPI.h>
#include <Ethernet.h>
// Thx http://bildr.org/2012/11/force-sensitive-resistor-arduino/
// Make use of https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
// MAC Address, needed by the Ethernet Shield
byte mac[] = { 0xB0, 0xC0, 0xDE, 0xEF, 0xFE, 0xC7 };
int pin_red = 7; // Red LED
@csusbdt
csusbdt / index.html
Created January 13, 2013 16:56
How to store JSON data into the user's Google drive storage.
<html>
<head>
<!--
In this example, I started with the 5-minute example provided by Google
on the following page:
https://developers.google.com/drive/
I modified the example code, so that I could write the following