Skip to content

Instantly share code, notes, and snippets.

View VarunBatraIT's full-sized avatar
🎯
Focusing

Varun Batra VarunBatraIT

🎯
Focusing
View GitHub Profile
type JSONContainer struct {
data []interface{}
}
func (j *JSONContainer) All() (objects []JSONObject) {
for _, v := range j.data {
objects = append(objects, JSONObject{data: v})
}
return
}
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
@VarunBatraIT
VarunBatraIT / gist:4747777
Created February 10, 2013 00:38
Google Keyword Tools Scrapper
// requires
var utils = require('utils');
var casper = require('casper').create()
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
// setup globals
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL';
<?xml version="1.0" encoding="UTF-8"?>
<project name="${projectName}" basedir="." default="build:main">
<!-- Properties -->
<property name="dir.app" value="${project.basedir}/app" />
<property name="dir.src" value="${project.basedir}/src" />
<property name="dir.build" value="${project.basedir}/app/build" />
<property name="dir.docs" value="${dir.build}/docs" />
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" />
<property name="dir.docs.docblox" value="${dir.docs}/docblox" />
<property name="dir.reports" value="${dir.build}/logs" />
@VarunBatraIT
VarunBatraIT / annoying.js
Created September 13, 2012 17:56 — forked from Kilian/annoying.js
How to be an asshole
/**
* Annoying.js - How to be an asshole to your users
*
* DO NOT EVER, EVER USE THIS.
*
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com)
* Visit https://gist.github.com/767982 for more information and changelogs.
* Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog
* Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors
*
<?php
/**
* This is the model class for table "vb_products".
*
* The followings are the available columns in table 'vb_products':
* @property integer $products_id
* @property integer $products_type
* @property integer $products_quantity
* @property integer $products_moq
@VarunBatraIT
VarunBatraIT / Products.php
Created September 13, 2011 23:04
Products.php
<?php
/**
* This is the model class for table "vb_products".
*
* The followings are the available columns in table 'vb_products':
* @property integer $products_id
* @property integer $products_type
* @property integer $products_quantity
* @property integer $products_moq