Skip to content

Instantly share code, notes, and snippets.

View achalddave's full-sized avatar

Achal Dave achalddave

View GitHub Profile
@echo off
C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"
@achalddave
achalddave / tmux_local_install.sh
Last active October 12, 2015 02:11 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.0
@achalddave
achalddave / designbookmarklet.js
Created July 11, 2012 05:56
A design bookmarklet I picked up somewhere
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');
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
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
ssh-dss AAAAB3NzaC1kc3MAAACBALPxVNv0mZBSe2x/T6zMN2jt+MJiRnQl7CBCZUp8qsjoB+rehjlGudCLoEShkWx9ubADRvhEcARPQdw9cDBTtZocEyDfvuQBctetPleUsS6LhnBgBkrGeYkFJtXkeCrM+1NqlZi0uewsQVr6MJ6qskZoIzqhxeyPbT4Q/L4cnT3hAAAAFQCfxaTcD9acayMg5HPNUNJabhBe7QAAAIBpAhr0aBJrG5hyDhCt8rw7iaherZCnIHTDzm4gWlL6yvmtTM6m+LRtFTIwzKn7owRObu2yasy7eHiKHKHNyvwLbqXRWt7J1mT7cTVLtSK9gcqLX+cOAqBISi9g2E741ptiOJTakBv9P3bqRI5rBQ/mPH5mOwgFpFcjRX/QeAq/5gAAAIBWf8tDtzjl1pYQZucWjX+cyQ+nqoE92NTkUVQ1EMjJlOZr5TGdcMQFUucRWsWUGqsEL/rT3iVTx1vS6LdpYwJCfWTQiHMENrhsdUzW5dD3OFSQ377wAIdWzoEzk8cTLcK/DX8QJYTEoFGsqdQ5y18YXuh7JDi1dGUA9UvLch2/Zw== Achal@Achal-Yoga