Skip to content

Instantly share code, notes, and snippets.

🕸
Inthewebs

Carl Vuorinen cvuorinen

🕸
Inthewebs
Block or report user

Report or block cvuorinen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cvuorinen
cvuorinen / README.md
Created Jan 8, 2018
README template
View README.md

Project title

Short description about the project and it's purpose. Includes e.g. projects main goal, intended users, some history (if old project) etc.

Team

Project team and other people that are involved with the project.

@cvuorinen
cvuorinen / raffle.html
Created Aug 25, 2017
Raffle a random name from a list (quickly display random names and gradually slow down until finally revealing winner)
View raffle.html
<!DOCTYPE html>
<title>Raffle</title>
<script>
const names = `
Testy McTesterson
Teofila Kamer
Gerard Yann
Majorie England
Shantell Donaldson
Chuck Daily
@cvuorinen
cvuorinen / karma.conf.js
Last active Aug 1, 2019
Example configurations for running Karma & Protractor tests in headless Chrome (see http://cvuorinen.net/2017/05/running-angular-tests-in-headless-chrome/)
View karma.conf.js
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
@cvuorinen
cvuorinen / autocomplete.js
Created May 5, 2016
RxJS & Angular 1 Autocomplete example with async filter
View autocomplete.js
angular.module('app', ['asyncFilter'])
.directive('autocomplete', function () {
return {
scope: {},
template: '<input />' +
'<ul class="suggestions">' +
'<li ng-repeat="suggestion in suggestions | async:this">' +
'<a href="https://github.com/{{ suggestion }}"' +
' target="_blank">{{ suggestion }}</a>' +
'</li>' +
@cvuorinen
cvuorinen / autocomplete.js
Last active Mar 24, 2018
RxJS & Angular 1 Autocomplete example
View autocomplete.js
angular.module('app', ['rx'])
.directive('autocomplete', function () {
return {
scope: {},
template: '<input ng-model="val" ng-change="update(val)" />' +
'<ul class="suggestions">' +
'<li ng-repeat="suggestion in suggestions">' +
'<a href="https://github.com/{{ suggestion }}"' +
' target="_blank">{{ suggestion }}</a>' +
'</li>' +
@cvuorinen
cvuorinen / asyncFilter.js
Last active Apr 19, 2016
asyncFilter.js - {{ observableOrPromise | async }}
View asyncFilter.js
angular
.module('asyncFilter', [])
.filter('async', function() {
const values = {};
const subscriptions = {};
function async(input, scope) {
// Make sure we have an Observable or a Promise
if (!input || !(input.subscribe || input.then)) {
return input;
@cvuorinen
cvuorinen / deploy.py
Last active Feb 3, 2018
Deploy Button on Olimex A20-OLinuXino-LIME with Jenkins build status and capistrano deploy. More information here: http://cvuorinen.net/2015/10/building-a-deploy-button/
View deploy.py
#!/usr/bin/env python
import os
import time
from pyA20Lime.gpio import gpio
from pyA20Lime.gpio import port
from autojenkins import Jenkins
### configration parameters
You can’t perform that action at this time.