Skip to content

Instantly share code, notes, and snippets.

View josmas's full-sized avatar

Jos josmas

View GitHub Profile
@josmas
josmas / rounds.md
Last active November 25, 2023 21:46
Starter instrucstions for TDD rounds

if you want to use --watch with jest, you need to initialize a git repo

    cd /tmp
    mkdir delete_me_after_round
    cd delete_me_after_round
    npm init --y
    git init
    npm install jest
@josmas
josmas / Vectorisation_examples.ipynb
Last active October 23, 2017 17:24
Vectorisation Examples GDGDublin DevFest17
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am josmas on github.
  • I am jos_e (https://keybase.io/jos_e) on keybase.
  • I have a public key whose fingerprint is 5F72 857E B97C 8DB7 E8E1 4CC8 3393 EE34 9270 DA71

To claim this, I am signing this object:

@josmas
josmas / designer.html
Last active August 29, 2015 14:20
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@josmas
josmas / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@josmas
josmas / YaClient.gwt.xml
Created October 8, 2014 15:32
GWT configuration file for MIT App Inventor
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.3.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.3.0/distro-source/core/src/gwt-module.dtd">
<module rename-to='ode'>
<entry-point class="com.google.appinventor.client.Ode" />
<!-- speed up compilation for testing. comment out the next two lines to compile
all permutations -->
<inherits name='com.google.gwt.user.UserAgent'/>
<set-property name="user.agent" value="safari,gecko1_8" />
@josmas
josmas / run-emulator
Created September 14, 2014 04:00
run-emulator script for App Inventor with quoted folder arguments
# Start the emulator for App Inventor
#!/bin/bash
# This is to try to get around a bug in the Android SDK where
# the emulator won't start and you'll see the message
# NAND: Could not create temp file for system NAND disk image.
# This is a permission problem on /tmp/android. Doing the
# rf here might not work either but it's worth a try. If this doesn't
# work, you should execute this remove command as root.
rm -rf /tmp/android
@josmas
josmas / gist:7491190
Created November 15, 2013 20:40
Description of App Inventor for Open Academy

#What is App Inventor? App Inventor is a drag and drop, blocks-based system, to easily create Android apps with little or no programming experience. The tool can be used for CS teaching purposes, but it's also being used to create apps that are being sold through the Google Play store. So App Inventor serves a broad spectrum of users.

#What's going on in this Project? App Inventor is a rather large project and different languages and technologies are used in different parts of it. For development purposes, we divide the project in three main parts: Components, the Designer, and the Blocks Editor.

##Components Components are abstracted pieces of functionality that wrap certain characteristics of mobile devices, for instance the accelerometer sensor, the NCF sensor, UI elements such as buttons, labels, and so on. Work in this area is created mostly with Java and the Android SDK.

@josmas
josmas / gist:6675775
Created September 23, 2013 19:36
JS Callbacks
var printFullName = function(fullName) {
console.log(fullName);
};
printFullName('Grace Hopper');
var createFullNameAndPrintIt = function(first, last, callback){
var fullName = first + ' ' + last;
callback(fullName);
};
public Camera(ComponentContainer container) {
super(container.$form());
this.container = container;
}