Skip to content

Instantly share code, notes, and snippets.

View sajithdilshan's full-sized avatar

Sajith Edirisinghe sajithdilshan

View GitHub Profile
@sajithdilshan
sajithdilshan / disqus.css
Created January 29, 2012 22:15
disqus css theme
#dsq-global-toolbar
.dsq-clearfix {
display: none;
}
#dsq-comments-title h3 {
}
#disqus_thread {
width: 730px !important;
@sajithdilshan
sajithdilshan / pyget2.py
Created August 11, 2012 22:37 — forked from benhutchins/pyget2.py
A python download accelerator
#!/usr/bin/env python
#
# pyget2.py
# A python download accelerator
#
# This file uses multiprocessing along with
# chunked/parallel downloading to speed up
# the download of files (if possible).
#
# @author Benjamin Hutchins
@sajithdilshan
sajithdilshan / gist:3787583
Created September 26, 2012 11:48
"Dear Muslims, Christians, Hindus, Buddhists and Jews,"

"Dear Muslims, Christians, Hindus, Buddhists and Jews,"

You're living in the age of the Internet. Your religion will be mocked, and the mockery will find its way to you. Get over it.

If you don't, what's happening this week will happen again and again. A couple of idiots with a video camera and an Internet connection will trigger riots across the globe. They'll bait you into killing one another.

Stop it. Stop following their script.

දෙව්-රම් අසල්වැසි තැන සූකර කොටුව.....
වටලාපියව්, ගෙන එව් අල්ලා බොටුව....
කවමින් සිවුර කැහැපට සඟ ඝණ කැටුව....
නොවැඩිය කිමද මග සිරි සදහම් දෙටුව....
කොසඹෑවෙහි ගඳඹ මුල පෙළහර නොතියා....
"පරයන් තීර්ථක ඉවසුම දැන් ඇතියා...."
ජනයා අභිමුවෙහි පුහු තොවිලය නොතියා....
මනැසින මසැස පැරදුව උත්තම ගතියා....
@sajithdilshan
sajithdilshan / Mac-FXchrome-FF29.css
Last active August 29, 2015 14:01
Mac-FXchrome-FF29
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* AGENT_SHEET */
.tabbrowser-tabs {
background: -moz-linear-gradient(top,#E0E0E0, #D1D1D1 70%) !important;
}
#navigator-toolbox::after {
background-color: #7A7A7A !important;
}
.bookmark-item > .toolbarbutton-text:not(:-moz-lwtheme) {
Input: Empty 8x8 matrices: Board, Attacked
Output: 8x8 matrix with 8 queens placed; Board
EightQueenRandomizedAlgo(Board, Attacked) {
int[] usedNumbers = []
while (true) {
for(int i = 0; i < 8; i++) {
<html>
<head><title>Apache Tomcat/7.0.68 - Error report</title>
<style><!--
H1 {
font-family: Tahoma, Arial, sans-serif;
color: white;
background-color: #525D76;
font-size: 22px;
}

Keybase proof

I hereby claim:

  • I am sajithdilshan on github.
  • I am sajithdilshan (https://keybase.io/sajithdilshan) on keybase.
  • I have a public key whose fingerprint is 09B9 9761 9E61 C2B0 FC6F BD30 97BC 481A AAB5 C1A4

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.adroitlogic.org/gringotts"
targetNamespace="http://www.adroitlogic.org/gringotts" elementFormDefault="qualified">
<xsd:element name="invoice-meta-info">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="subject" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="receiver-id" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="receiver-address" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="payload" type="Payload" minOccurs="1" maxOccurs="1" />
CREATE DATABASE zenythzdb;
USE zenythzdb;
CREATE TABLE machine (
factory_id SMALLINT,
machine_id SMALLINT,
hours SMALLINT,
restarts SMALLINT,
minor_repairs SMALLINT,
major_repairs SMALLINT,
extra_cost INT,