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 / cpp.properties
Created September 29, 2012 09:13
Visage Editor (Make Scite as the Default Visage Editor) - Just add this in the file cpp.properties {ie. Options->cpp.properties}
#For Visage Compilation/Build/Run
command.compile.*.visage=visagec -d . $(FileNameExt)
command.build.*.visage=visagec -d . *.visage
command.go.*.visage=visage -cp . $(FileName)
# jad = decompiled class files; pde = Processing.org sketch files
file.patterns.visage=*.visage
lexer.$(file.patterns.visage)=cpp
word.characters.$(file.patterns.visage)=$(word.chars.cxx)$-
@shivkumarganesh
shivkumarganesh / cpp.properties
Created October 14, 2012 17:03
Complete cpp.properties. To be used with Scite so as to have Visage up and Running!
# Define SciTE settings for C++, C, C#, Ch, Java, IDL, JavaScript, Flash (ActionScript 2) files.
# sma files are Small script (C-like)
file.patterns.cpp=*.c;*.cc;*.cpp;*.cxx;*.h;*.hh;*.hpp;*.hxx;*.ipp;*.m;*.mm;*.sma
file.patterns.cplusplus=*.cc;*.cpp;*.cxx
# jad = decompiled class files; pde = Processing.org sketch files
file.patterns.java=*.java;*.jad;*.pde
file.patterns.javafx=*.fx
file.patterns.visage=*.visage
# pln, inc and t are SilkTest (4Test) files.
@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;
}
});
@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 / 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 / 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 / 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"}

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.

<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">
@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%;