Skip to content

Instantly share code, notes, and snippets.

View efexen's full-sized avatar

Ville Hellman efexen

View GitHub Profile
@efexen
efexen / fullstack.md
Last active July 3, 2018 09:00
Fitzdares Fullstack Support & Dev

We are looking for an ambitious FullStack developer to take over the support & maintenance and future development of the various projects we currently have here at Fitzdares. You should be comfortable at all levels of the tech stack and a keen learner able to diagnose and address any problems quickly.

The role is split between ensuring our various projects are up and running, up to date and healthy as well as bug fixing and new feature development.

This opportunity will have you involved with provisioning new servers in AWS, configuring new and existing servers, designing and maintaining deployment pipelines, designing and deploying solutions which could involve database work, backend code and implementing designs from our in-house designer and UX lead.

Being a self-starter and a technically self-sufficient developer are key for this role as you will be working as a team of one. This also means you will need to feel comfortable making technical decisions going forward in terms of technologies in use.

So

@efexen
efexen / fizzbuzz3.py
Created May 24, 2016 22:33
Ridiculous 1 line Python FizzBuzz for Python May
print str.join('\n', [str(str.join('', [out if number % divisor == 0 else '' for divisor, out in { 3: 'Fizz', 5: 'Buzz' }.items()]) or number) for number in range(1, 101)])
@efexen
efexen / fizzbuzz2.py
Last active May 3, 2016 23:26
Second Python FizzBuzz attempt
class FizzBuzz:
rules = { 3: "Fizz", 5: "Buzz" }
def __init__(self, start, stop):
self.start = start
self.stop = stop + 1
def value_for(self, value):
output = ""
@efexen
efexen / fizzbuzz.py
Last active May 2, 2016 21:43
First Python FizzBuzz (Day 2 of Python May)
class FizzBuzz:
def __init__(self, start, stop):
self.start = start
self.stop = stop + 1
def value_for(self, value):
output = ""
if value % 3 == 0:
output += "Fizz"
@efexen
efexen / window_test.cpp
Created March 23, 2016 23:06
Drawing basic window with a pair of green lines using SDL2
#include <SDL.h>
#include <stdio.h>
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
int main(int argc, char* args[])
{
SDL_Window* window = NULL;
SDL_Renderer* renderer = NULL;
@efexen
efexen / index.js
Created December 8, 2014 21:01
Raspberry Pi & Physical Web LED Demo
var http = require('http');
var url = require('url');
var piblaster = require('pi-blaster.js');
var beacon = require('uri-beacon');
var ngrok = require('ngrok');
var handlebars = require('handlebars');
var fs = require('fs');
var layout = handlebars.compile(fs.readFileSync('./layout.html', 'utf8'));
@efexen
efexen / gist:62db8c7b6c4756f193fe
Created July 22, 2014 10:01
RSpec alias_method matcher for RSpec 3
# Original: https://gist.github.com/otaviomedeiros/1950961
# Updated for new RSpec syntax
RSpec::Matchers.define :alias_from do |alias_method|
match do |subject|
begin
subject.send(alias_method)
rescue NoMethodError
raise "expected alias_method from #{alias_method} to #{@original_method} but #{alias_method} is not defined"
end
@efexen
efexen / a_steps.md
Last active December 13, 2015 19:09
Converting certain Open Type fonts (.otf) to .eot files

Convert .otf to .eot


Some OTF fonts when converted to .eot files using any of the online conversion tools fail to render in Internet Explorer 8. Here are the steps I had to take in order to get a working .eot file.

These steps should work for most linux and mac environments, only tested in OSX Lion:

  1. Install FontForge (available in Homebrew) or http://sourceforge.net/projects/fontforge/
  2. Copy convert.pe file below to your local machine
  3. Set execute permissions for the convert.pe file