Skip to content

Instantly share code, notes, and snippets.

Naman Aggarwal namaggarwal

Block or report user

Report or block namaggarwal

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
@namaggarwal
namaggarwal / emailstructure.py
Created Apr 20, 2019
Json Structure for email
View emailstructure.py
import json
def printMessages(messages):
for message in messages:
print(message["id"])
def printFolderMessages(obj):
if 'messages' in obj:
printMessages(obj['messages'])
@namaggarwal
namaggarwal / package.js
Created Dec 13, 2015
To AutoCreate package.json for nodeJS
View package.js
var fs = require("fs");
function main() {
fs.readdir("./node_modules", function (err, dirs) {
if (err) {
console.log(err);
return;
}
dirs.forEach(function(dir){
if (dir.indexOf(".") !== 0) {
@namaggarwal
namaggarwal / home.js
Created Sep 16, 2015
JQuery AutoComplete Example
View home.js
$(document).ready(function(){
attachAutoComplete();
});
function attachAutoComplete(){
$("#autocomp").autocomplete({
You can’t perform that action at this time.