Tags » Code Snippet

html lists: indent spacing and change bullet styles

Working on my website recently and created a multi-level unordered list. The spacing of the second level indent was much more than I needed and I wasn’t loving the fact that the bullets were the same for both levels. 192 more words


Communication Service

This page will provide one solution to setup communication between processes via Shared Memory. 45 more words


Configuration Section

This code snippet will show you how to use configuration section in C#. 200 more words


changing periods to underscores in R

colnames(adwords) <- gsub(“\\.”,”_”,colnames(adwords))



A Simple JAVA Code for taking Screenshots :)

import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class RobotExp {

public static void main(String[] args) {

try {

Robot robot = new Robot();
BufferedImage bi=robot.createScreenCapture(new Rectangle(1024,768));
ImageIO.write(bi, "jpg", new File("C:/imageTest.jpg"));

} catch (AWTException e) {
} catch (IOException e) {

Famous Pyton modules

Check out this site which list famous Python modules:  http://pypi-ranking.info/alltime

Here is the list as of top 7 :

  1. simplejson
  2. setuptools
  3. six
  4. requests
  5. virtualenv
  6. pip
  7. distribute

Code Snipet: Constructor

Handy keyboard shortcut for quickly adding a new Constructor to a Class.

Step 1: Place your cursor where you want to add the Constructor:

Step 2: Type “ctor”: 13 more words