Skip to content

Instantly share code, notes, and snippets.

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

Shiv Kumar Ganesh shivkumarganesh

🏠
Working from home
View GitHub Profile
@shivkumarganesh
shivkumarganesh / uuid.js
Created June 2, 2015 18:18
Generate UUID using Simple JavaScript Function
var generateGuid = function () {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return s4() + s4() + '-' + s4() +
'-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
};
console.log(generateGuid());
@shivkumarganesh
shivkumarganesh / _.md
Created February 18, 2015 11:30
CrossFilter Sample [V 0.0.0]
@shivkumarganesh
shivkumarganesh / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">

Blocker-(FlatUI Notification)

This project contains as many Block/Flat UI widgets as Possible so that anyone can utilise it to any extent. It helps in making simple widgets.

A Pen by Shiv Kumar Ganesh on CodePen.

License.

@shivkumarganesh
shivkumarganesh / cloudSettings
Last active February 21, 2020 23:14
A Pen by Shiv Kumar Ganesh.
{"lastUpload":"2020-02-21T23:14:39.172Z","extensionVersion":"v3.4.3"}
@shivkumarganesh
shivkumarganesh / Splice.js
Created February 21, 2014 15:49
This code helps us to remove data from the array.
//First, find the index of the element you want to remove:
var array = [2, 5, 9];
var index = array.indexOf(5);
//Then remove it with splice:
if (index > -1) {
@shivkumarganesh
shivkumarganesh / StackExchangeTags.js
Created September 12, 2013 13:54
This Program helps you to download all the StackExchangeTags from the StackExchange Website. Kinda jumbled up to look but works well. You just need to get the API key and add it with a valid MongoDB url.
var siteList={
"items":
[ { "api_site_parameter": "stackoverflow" },
{ "api_site_parameter": "serverfault" },
{ "api_site_parameter": "superuser" },
{ "api_site_parameter": "meta.stackoverflow" },
{ "api_site_parameter": "webapps" },
{ "api_site_parameter": "meta.webapps" },
{ "api_site_parameter": "gaming" },
{ "api_site_parameter": "meta.gaming" },
@shivkumarganesh
shivkumarganesh / server.js
Created July 22, 2013 08:11
Creating a NodeJS cluster with ExpressJS.
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path')
@shivkumarganesh
shivkumarganesh / Bind in Visage
Created October 24, 2012 12:57
This small snippet show us how to use enable binding in visage binders.You can simply put this snippet on the top of the class and import java listeners.
//Please format the code appropriately as required.
postinit{
//Changes on text property will be reflected in visage text
wrappedTextInputControl.textProperty().addListener(
ChangeListener{
override function changed( observable:ObservableValue, oldValue:Object , newValue:Object ):Void{
text = newValue as String;
}
});