Skip to content

Instantly share code, notes, and snippets.

View pramithkm's full-sized avatar

Pramith Dayananda pramithkm

  • Catalyst IT
  • Wellington
View GitHub Profile
<div id="testone">
<div id="testtwo"></div>
<embed src="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf#toolbar=0" width="800" height="800">
</div>
<script type="text/javascript">
document.onmousedown = disableRightclick;
var message = "Right click not allowed !!";
function disableRightclick(evt){
if(evt.button == 2){
@pramithkm
pramithkm / index.html
Created November 25, 2018 05:53
vQjoBO
<div class="divTable">
<div class="divTableBody">
<div class="divTableRow">
<div class="divTableCell title"><p>title one</p></div>
<div class="divTableCell">title two</div>
<div class="divTableCell">title three</div>
<div class="divTableCell">title four</div>
</div>
<div class="divTableRow">
<div class="divTableCell">1111</div>
# Get the diff of the local changes vs subtree remote
git diff-tree -p remote/branchname HEAD:subtree/folder/ > /drive/location/filename.diff
protected float comis = 100;
private boolean yahapalane = false
public String repeat = "mahinada hora";
int uncertainity = 100000000;
for (i == 0; i <= uncertainity; i++) {
System.out.println("machan");
}
function registrationForm() {
$mcpuserParentID = Group::get()->where("\"Group\".\"Code\" = 'mcpuser'")->First()->ID;
$getGroups = Group::get()->where("ParentID='". $mcpuserParentID . "'")->map('ID', 'Title');
$fields = new FieldList(
new TextField('FirstName','First Name'),
new TextField('Surname','Last Name (Surname)'),
new EmailField('Email','Email Address'),
new EmailField('ConfirmEmail','Confirm Email Address'),
new MCPConfirmedPasswordField('Password','Password'),
.container {
padding:0px;
}
.festival_wrapper {
background-color: black;
max-width: 980px;
height:500px;
-webkit-border-radius: 10px;
<div id="VisualQuizIndex">
<a class="gui-sprite gui-startbutton strt-bttn" href="$Link('question')/$QuestionsInOrder.First.ID"><% _t('VisualQuizPage.StartTheQuiz') %></a>
<div class="clearfix clear">
<div id="Step1Wrapper" class="step span-6">
<a href="$Link('question')/$QuestionsInOrder.First.ID"><h2><% _t('VisualQuizPage.Step') %> <span>1</span></h2></a>
<a href="$Link('question')/$QuestionsInOrder.First.ID">
<div class="step-vcenter-2">
<% if $Step1Text %>
@pramithkm
pramithkm / dataattrib.html
Created November 28, 2013 08:34
Get data attribute link and open in a new window.
<html>
<head>
<title>
Window Test
</title>
</head>
<body>
The Window Test
<div id="mylink" data-link="http://www.google.com">Google</a>