Skip to content

Instantly share code, notes, and snippets.

* http://myopenideas.com/
* http://www.openideo.com
* http://www.iinspireus.com/how-it-works/sharing
* http://openideas.ideon.co
* http://en.wikipedia.org/wiki/Open_innovation
* http://www.whynot.net/
* http://www.globalideasbank.org/site/home/
Software:
@fpereira1
fpereira1 / Preferences.sublime-settings
Last active August 29, 2015 14:05
My sublime preferences at home
{
"bold_folder_labels": true,
"default_line_ending": "unix",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"highlight_line": true,
"file_exclude_patterns":
[
"._.*",
tps:c type="Emphasis_Text"
tps:c type="footnote reference"
tps:c type="hyperlink"
tps:c type="Special_Term"
tps:context type="2_up_image"
tps:context type="2_up_image_1"
tps:context type="2_up_image_2"
tps:context type="Activity_footer"
tps:context type="Activity_header"
tps:context type="Aim_box"
$SG(function() {
$('sg-question').removeClass('sg-hide');
});
$('.sg-question-title code').hide();
randomRange = function(min, max) {console.log(min,max); return Math.floor(Math.random() * (max - min + 1)) + min; }
eval($('.sg-question-title code').text());
$('.sg-question-title var').each(function(i, el) {
var text = $(el).text();
$(el).text(eval(text));
@fpereira1
fpereira1 / outlook-quiz.md
Last active August 29, 2015 14:10
web search quiz
  1. Which type of calendar entry should you use if others at your workplace are involved?
  • A meeting.
  • An appointment.
  • An all day event.
  1. Which of the following would best be scheduled as an all day event in your calendar?
  • A party that occurs from 4:00 to 6:00 P.M.
  • A birthday
import java.io.*;
public class CopyFile {
public static void main(String args[]) throws IOException
{
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream("input.txt");
@fpereira1
fpereira1 / test1.java
Last active September 25, 2015 01:10
Testing
import java.io.*;
public class CopyFile {
public static void main(String args[]) throws IOException
{
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream("input.txt");
@fpereira1
fpereira1 / keybr_speed.js
Created December 23, 2015 06:58
keeps daily record of keybr speed
var storage = [];
$g_speed.$on('DOMSubtreeModified', function(e) {
alert(e);
setTimeout(function(){
var speed = parseInt($g_speed.innerText);
var d = new Date();
var dt = ['getFullYear', 'getMonth', 'getDay'].map(function(e){
return d[e]();
}).join('-');
storage[dt] = storage[dt] || [];
{
init: function(elevators, floors) {
floors.forEach(function(floor) {
floor.on('up_button_pressed', floorButtonPressed);
floor.on('down_button_pressed', floorButtonPressed);
});
// Starts a list of waiting on floors
var waitingOn = [];