Skip to content

Instantly share code, notes, and snippets.

View SBejga's full-sized avatar

Sebastian Bejga SBejga

View GitHub Profile
@SBejga
SBejga / raw+jpeg-jpeg.sh
Created November 24, 2014 20:44
Lightroom Raw+JPG Remover of JPG files
#!/bin/bash
#change this to folder with target files/folders inside.
root=~/Pictures/2014
for f in $(find $root -name '*.CR2' -or -name '*.ARW');
do
fname=`echo $f | cut -d\. -f1`
if [ -e $fname.jpg ]
then
//make + mocker + jasmine
it('should register component (single ID)', function(done) {
socket = io('http://localhost:' + port);
socketService.io.sockets.in('component1').emit('foobar', { foo: 'baz' });
socket.once('registerComponent', function(data) {
socketService.io.sockets.in('component1').emit('foobar', { foo: 'bar' });
});
@SBejga
SBejga / wahlpflicht_mobile_web_development.md
Last active August 29, 2015 14:21
Wahlpflicht Vorlesung zum Thema "Mobile & Web Prototyping"

Titel: Mobile & Web Prototyping

Das Ziel dieser Wahlpflichtveranstaltung ist, die notwendigen Programmiersprachen, Technologien und Konzepte zu vermitteln, um in der Lage zu sein sehr schnell Mobile Anwendungen zu entwickeln. Dies umfasst sowohl die eigentliche App als auch den Server mit Datenbank (Backend).

Für die Entwicklung einer App wird "Swift" (iOS) thematisiert. Darauf aufbauend wird vorgestellt, wie man mit "Javascript" für mehrere mobile Plattformen entwickeln kann ("Apache Cordova"). Als Vorgehensmodell für das Entwickeln wird ebenfalls die Methodik "Design Thinking" präsentiert. Alle Inhalte werden abschließend als Labor/Projekt in Kombination angewendet und bewertet.

Inhalte:

  • Grundlagen Swift (iOS)
  • Grundlagen Javascript
@SBejga
SBejga / linklist.html
Last active September 26, 2015 15:51
MobileWebDev
@SBejga
SBejga / readline_students.js
Last active October 5, 2015 20:18
DHBW Mobile Web Dev - Practice Student Array Readline
//import from node.js core to read from stdin
var readline = require('readline');
//Configure Readline
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
//Init Array for Students
@SBejga
SBejga / introrx.md
Created September 8, 2016 21:07 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@SBejga
SBejga / README.md
Created September 30, 2016 08:25 — forked from yckart/README.md
rawgit.com / rawgithub.com - Bookmarklet

A simple bookmarklet which makes our painful life a bit easier.

javascript:(function(b,a,c,d,e){if(/\.\w+$/.test(a))b.location=c+a.replace("/blob/","/");else if(e=prompt("Insert a filename:","index.html"))b.location=c+a.replace("/tree/","/")+(~a.indexOf(d)?"/":d)+e})(window,location.pathname,"http://rawgit.com","/master/");

The usage is quite simple:

Go to any repo where you like to preview a file, and execute the booklet. If the current url is a file, it should open the file directly, otherwise it will prompt for a filename (per default it is index.html).

@SBejga
SBejga / cordova_features.html
Last active September 30, 2016 08:38
Cordova Feature Icons
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" media="screen" href="v2.css">
<link rel="stylesheet" type="text/css" media="screen" href="stylesheet.css">
<title>Cordova Features</title>
@SBejga
SBejga / chrome_multiple_open.sh
Created October 15, 2016 22:47
Open Multiple Chrome Windows
# helper bash script to open multiple chrome windows at given position and size
# works at mac os x sierra
open -n -g -a /Applications/Google\ Chrome\ Canary.app --args --new-window --app="data:text/html,<html><body><script>window.resizeTo(500,1000);window.moveTo(1200,50);window.location='http://localhost:8000/server/';</script></body></html>"
open -n -g -a /Applications/Google\ Chrome\ Canary.app --args --new-window --app="data:text/html,<html><body><script>window.resizeTo(1100,300);window.moveTo(70,50);window.location='http://localhost:8000/';</script></body></html>"
open -n -g -a /Applications/Google\ Chrome\ Canary.app --args --new-window --app="data:text/html,<html><body><script>window.resizeTo(1100,300);window.moveTo(70,350);window.location='http://localhost:8000/';</script></body></html>"
open -n -g -a /Applications/Google\ Chrome\ Canary.app --args --new-window --app="data:text/html,<html><body><script>window.resizeTo(1100,300);window.moveTo(70,650);window.location='http://localhost:8000/';</script><
@SBejga
SBejga / package.json
Last active October 18, 2016 07:41
reverse Geocoding example with typescript
{
"name": "3_tsconfig",
"version": "1.0.0",
"description": "",
"main": "old.js",
"scripts": {
"demo": "tsc && node build/js/reverseGeo.js 'Stuttgart, Germany'"
},
"author": "",
"license": "Apache-2.0",