Skip to content

Instantly share code, notes, and snippets.

View charithsoori's full-sized avatar

charith sooriyaarachchi charithsoori

View GitHub Profile
<html>
<body ng-app>
<div class='container'>
Name:<input type="text" ng-model="name"/>
<br>
<label>{{name}}</label>
</div>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js'></script>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="22bdd652-4495-480d-9b59-ed5f56d20558">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
<style name="Detail" fontName="Arial" fontSize="12"/>
<style name="Row" mode="Transparent">
/**
* This script will delete all group members which are displayed in a given page.
*
* @author: Nir Geier
*
* Usage:
* Load as many users as you need, then open console and paste this script in teh console.
* Once the script finished executing you will be see blank members page, reload the next
* page and start the process again.
*
@charithsoori
charithsoori / gist:4132323
Created November 22, 2012 17:36
Bulk facebook invitation 2012
1. Open Google Chrome
2. Open where you can invite your friends
3. Open JavaScript developer tools (F12)
4. Copy paste following code
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
~soori
@charithsoori
charithsoori / gist:4132313
Created November 22, 2012 17:34
How to send bulk invitations in facebook 2012
1. Open Google Chrome
2. Open where you can invite your friends
3. Open JavaScript developer tools (CTRL+SHIFT+J)
4. Copy past following code
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
~soori
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
@charithsoori
charithsoori / gist:1229725
Created September 20, 2011 17:22 — forked from arunoda/gist:1229406
Java Script Data Structures
// Arrays
var aaa = [];
// Stack
var aa = [10];
aa.push(20);
aa.pop(); //gets 20