Skip to content

Instantly share code, notes, and snippets.

View chris-gunawardena's full-sized avatar

Chris Gunawardena chris-gunawardena

View GitHub Profile
@chris-gunawardena
chris-gunawardena / jira_standup_timer.user.js
Created October 24, 2013 07:04
Chrome plugin / grease monkey script to add a timer to JIRA for Agile stand ups.
// ==UserScript==
// @match https://*/secure/RapidBoard.jspa?rapidView=*
// @name Agile standup timer for JIRA - Chris Gunawardena
// ==/UserScript==
function addJQuery(callback) { //http://stackoverflow.com/questions/2246901/how-can-i-use-jquery-in-greasemonkey-scripts-in-google-chrome
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
@chris-gunawardena
chris-gunawardena / Vagrantfile
Last active December 27, 2015 20:29
Example for using Vagrant with Amazon EC2 aws provider
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "dummy"
config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
#$ vagrant plugin install vagrant-aws
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
//set current time
int hours = 12;
int minutes = 31;
int seconds = 0;
@chris-gunawardena
chris-gunawardena / analytics_by_minute.js
Created December 8, 2013 23:03
Quick script to run on the console to log visitors every minute.
setInterval(function(){
console.log(new Date().getHours() +':'+ new Date().getMinutes() +', '+document.getElementById('ID-overviewCounterValue').innerHTML)
},60*1000);
int SER_Pin = 8; //connects to pin 14 on the 75HC595
int RCLK_Pin = 9; //connects to pin 12 on the 75HC595
int SRCLK_Pin = 10; //connects to pin 11 on the 75HC595
const int number_of_74hc595s = 3;
const int number_of_register_pins = number_of_74hc595s * 8;
boolean registers[number_of_register_pins];
//Mapping of LED order to serial converter pins
int hour_led_order[] = { 17, 18, 19, 20, 21, 22, 23, 12, 13, 14, 15, 16 };
var phantomcss = require('./../phantomcss.js');
phantomcss.init();
casper.start();
casper.viewport(1024, 768);
var tests = [
function(casper, phantomcss) {
casper.echo("Suite 1");
casper.start("http://google.com/", function() {
#!/bin/sh
casperjs test testsuite.js
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
exit 1
fi
while true; \
do \
wget --quiet -O - "http://jit.rmit.co.vu:8181/job/RMIT%20Public%20website/lastBuild/api/xml?depth=1&tree=building,result" \
| sed -r 's/<freeStyleBuild><building>true<\/building><\/freeStyleBuild>/\/cygdrive\/c\/buildLight\/USBCMDAP.exe 0 0 101 2 3\n/' \
| sed -r 's/<freeStyleBuild><building>false<\/building><result>FAILURE<\/result><\/freeStyleBuild>/\/cygdrive\/c\/buildLight\/USBCMDAP.exe 0 0 101 2 5\n/' \
| sed -r 's/<freeStyleBuild><building>false<\/building><result>SUCCESS<\/result><\/freeStyleBuild>/\/cygdrive\/c\/buildLight\/USBCMDAP.exe 0 0 101 2 6\n/' \
| while read CMD; do eval $CMD; echo $CMD; done; \
done
COMO BUSCAR ALGUNOS COMPONENTES BASICOS EN EAGLEAUTOR: ING. JOHN CAIPA ROLDAN
Lo siguiente es un compendio de cómo pueden encontrar algunos de los componentes másbásicos en el software EAGLE 5.9, espero les sea útil.
CIRCUITOS INTEGRADOS:
-PIC16F84A: MICROCHIP>PIC16F8*>PIC16F84AP-MAX232: maxim>MAX232-NE555: st-microelectronics>NE555
CONDENSADORES:
-condensadores cerámicos pico faradios: rlc>C-EU>C-EU025-025X050
-condensador 103, 104: rlc>C-EU>C-EU050-025X075
-condensadores 1-10uF: rlc>CPOL-US>CPOL-USE2.5-5 o CPOL-USE2.5-6
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>