This file contains hidden or 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
PFont defaultFont; | |
int paddingLeft = 25; | |
int paddingTop = 20; | |
int row = 0; | |
int fontSize = 24; | |
int lineHeight = fontSize * 4; | |
int examplesPerColumn = 9; | |
int exampleCount = 0; | |
int columnWidth = 900; |
This file contains hidden or 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
// Required library to communicate with Serial port | |
import processing.serial.*; | |
// variables to store rectangle X position, Y position, Width and Height | |
int x, y; | |
// The object that wil communicate with the Serial port | |
AccelerometerReader reader; | |
void setup() { |
This file contains hidden or 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
import javax.script.*; | |
void setup() { | |
// creates and object to be manipulated by | |
// the script | |
MyClass obj = new MyClass(); | |
// object state BEFORE running the script | |
println("Before:"); |
This file contains hidden or 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
#!/bin/bash | |
# Command to monitor the available dates for booking a working permit renewal in GNIB office: | |
watch -n 60 "curl -s 'https://burghquayregistrationoffice.inis.gov.ie/Website/AMSREG/AMSRegWeb.nsf/(getAppsNear)?openpage&cat=Work&sbcat=All&typ=Renewal' | sed 's/\"/+/g' | tr '{' '\n' | grep time | awk -F+ '{ print \$4; }'" | |
# TO USE IT WITHOUT WATCH, REMOVE THE BACKSLASH OF \$4 IN AWK COMMAND: | |
# curl -s 'https://burghquayregistrationoffice.inis.gov.ie/Website/AMSREG/AMSRegWeb.nsf/(getAppsNear)?openpage&cat=Work&sbcat=All&typ=Renewal' | sed 's/\"/+/g' | tr '{' '\n' | grep time | awk -F+ '{ print $4; }' | |
# Sample output: |
This file contains hidden or 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
void setup() { | |
// --------------------------------------- | |
// screen mode (pick one) | |
// --------------------------------------- | |
size (220,130); | |
surface.setResizable(true); | |
// -- OR --------------------------------- | |
// fullScreen(); | |
// --------------------------------------- |
This file contains hidden or 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
// ==UserScript== | |
// @name Ticket link in resolve tasks | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Turn 4 digit numbers in teamwork tasks' title into a link to the ticket in resolve | |
// @author Paulo Amaral | |
// @match https://*.teamwork.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
<html> | |
<body> | |
<!-- Adapted from http://codoki.com/2015/09/01/native-javascript-templating/ --> | |
<!-- Implemented Marcos Correia's suggestion - refer to article comments --> | |
<ul id="list"></ul> | |
<script id="my-template" type="x-template"> |
This file contains hidden or 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
' Q B a s i c G o r i l l a s | |
' | |
' Copyright (C) IBM Corporation 1991 | |
' | |
' Your mission is to hit your opponent with the exploding banana |
This file contains hidden or 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
#!/bin/bash | |
# ################################################################ | |
# | |
# This is a sample script, modify it according to your needs. | |
# SSH password access won't work, you must have your RSA key | |
# added to server's authorizedkeys file, or use ssh's -i option. | |
# | |
# https://gist.github.com/paulera/582033379327de63bf7f7d82aaf3d3cc |
This file contains hidden or 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
Option Explicit | |
' Gets clipboard's contents as pure text and saves it | |
' to the file set in filePath variable. | |
' author https://github.com/paulera | |
' see https://gist.github.com/paulera/b9af6f44aa553b6063d928547c26eab9 | |
' File path to save clipboard contents | |
Dim filePath : filePath = "C:\clipboard.txt" |