This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:function%20fnStartDesign(sUrl){var%20nScript=document.createElement('script');nScript.setAttribute('language','JavaScript');nScript.setAttribute('src',sUrl);document.body.appendChild(nScript);}fnStartDesign('http://www.sprymedia.co.uk/design/design/media/js/design-loader.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function readImage(aFile) { | |
var pic = new Image(), | |
frd = new FileReader(); | |
while (!target.droppedImage) { | |
target = target.parent; | |
} | |
pic.onload = function () { | |
canvas = newCanvas(new Point(pic.width, pic.height)); | |
canvas.getContext('2d').drawImage(pic, 0, 0); | |
target.droppedImage(canvas, aFile.name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Test { | |
Point3f x; | |
void setXStack(float a, float b, float c) { | |
x = Point3f(a, b, c) | |
} | |
void setXHeap(float a, float b, float c) { | |
x = *(new Point3f(a, b, c)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRCDIR=src | |
DSTDIR=dst | |
# copy recursively (-r) updated (-u) files, preserve (-p) attributes if | |
# possible | |
$(echo "cp -R -u -p $SRCDIR/* $DSTDIR") | |
# hack? psh | |
for file in $(find $DSTDIR/*) ; do | |
[ ! -e "$SRCDIR/${file#*/}" ] && echo "Removing $file" && rm $file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rm { | |
if [[ "$1" == "-rf" ]] ; then | |
echo "If you really want to delete this, say 'I may be an idiot'." | |
read var | |
if [[ "$var" != 'I may be an idiot' ]] ; then | |
echo "Nope, you didn't write that correctly" | |
return | |
fi | |
fi | |
rm "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRCS=$(filter-out readme.md, $(wildcard *.md)) | |
FILES=$(patsubst %.md, output/%.html,$(SRCS)) | |
all : output $(FILES) | |
output : | |
mkdir -p output | |
output/%.html : %.md | |
pandoc --section-divs -c ../docs.css -s --smart -t html5 $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* ==================================================== | |
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. | |
* | |
* Developed at SunPro, a Sun Microsystems, Inc. business. | |
* Permission to use, copy, modify, and distribute this | |
* software is freely granted, provided that this notice | |
* is preserved. | |
* ==================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-dss AAAAB3NzaC1kc3MAAACBALPxVNv0mZBSe2x/T6zMN2jt+MJiRnQl7CBCZUp8qsjoB+rehjlGudCLoEShkWx9ubADRvhEcARPQdw9cDBTtZocEyDfvuQBctetPleUsS6LhnBgBkrGeYkFJtXkeCrM+1NqlZi0uewsQVr6MJ6qskZoIzqhxeyPbT4Q/L4cnT3hAAAAFQCfxaTcD9acayMg5HPNUNJabhBe7QAAAIBpAhr0aBJrG5hyDhCt8rw7iaherZCnIHTDzm4gWlL6yvmtTM6m+LRtFTIwzKn7owRObu2yasy7eHiKHKHNyvwLbqXRWt7J1mT7cTVLtSK9gcqLX+cOAqBISi9g2E741ptiOJTakBv9P3bqRI5rBQ/mPH5mOwgFpFcjRX/QeAq/5gAAAIBWf8tDtzjl1pYQZucWjX+cyQ+nqoE92NTkUVQ1EMjJlOZr5TGdcMQFUucRWsWUGqsEL/rT3iVTx1vS6LdpYwJCfWTQiHMENrhsdUzW5dD3OFSQ377wAIdWzoEzk8cTLcK/DX8QJYTEoFGsqdQ5y18YXuh7JDi1dGUA9UvLch2/Zw== Achal@Achal-Yoga |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [C,N]=DataPerVeh(dt,VehId,Activity,cons) | |
%VehId | |
%dt=10 | |
%Activity | |
%cons=[145.83; 163.7 ;223.62; 138.3] | |
ActivityId=find((Activity{2:end,1}==VehId)); | |
VehActivity=Activity(ActivityId+1,:); | |
Nt=round(24/dt); | |
N=zeros(1,Nt); | |
C=zeros(1,Nt);%W |
OlderNewer