Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / software-release-pledge.md
Created November 14, 2015 21:08
Software Release Pledge

Software Release Pledge

Short description: This Pledge is a commitment by software makers to empower their users with the capabilities of keeping using the software, even if it was to be discontinued.

If our founding team ever comes to discontinue development and/or maintenance of our product (or service), we pledge:

  • to inform our users at least 2 weeks before the product (or service) can no longer be used;
  • and to propose a solution for them to keep using the product (or service).

These solutions include (but are not limited to): opening the source code of the product (or service), selling the Internet domain name and working server infrastructure without profit, or at least providing a way to migrate all user data and functionalities to another product (or service) for users who want it.

@Teino1978-Corp
Teino1978-Corp / software-architect.md
Created November 14, 2015 20:56
Software Architect @ Reclame

We are seeking a Web Software Architect to join our team of talented software developers. As an architect, you'll work in a fast-paced agile environment. Our products are high-volume and highly available multi-tenant web applications written in PHP, Ruby, and Java serving millions of unique visitors each day. The Architect will be responsible for dictating design choices to software developers, including but not limited to: platforms, coding and technical levels. The Architect’s goal is to gain a complete understanding of the project needs and effectively communicate them to the software development team. The software architect spearheads all of the software development activities of the development team: he manages the full life cycle of the process, actively involves in the development of core modules, monitors research & new technologies, reviews codes and supervises any testing.

Duties and Responsibilities

In Loosemonkies, we face many challenges and interesting problems to

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Scanner;
public class PopulationCounter {
static Map<String, Map<String, Long>> population;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
@Teino1978-Corp
Teino1978-Corp / fractal.html
Created November 14, 2015 09:06
fractal svg
<html><body>
<svg width="100%" height="100%">
<defs>
<path id="level_0" fill="#003399" d="M0 0,2 0,1 1.732,z" />
<g id="level_1">
<use xlink:href="#level_0" transform="matrix(0.5 0 0 0.5 0 0)" />
<use xlink:href="#level_0" transform="matrix(0.5 0 0 0.5 1 0)" />
<use xlink:href="#level_0" transform="matrix(0.5 0 0 0.5 0.5 0.866)" />
</g>
<g id="level_2">
@Teino1978-Corp
Teino1978-Corp / index.html
Last active November 14, 2015 01:09
Float Placeholder
<div class="float-placeholder">
<input type="text" id="name" placeholder="What is your name?" class="float-placeholder-input">
<label for="name" class="float-placeholder-label">Name</label>
</div>
<br>
<div class="float-placeholder">
<select id="state" class="float-placeholder-input">
<option>California</option>
<option>Jamaica</option>
</select>
@Teino1978-Corp
Teino1978-Corp / gulpfile.js
Created November 13, 2015 21:38
Web Apps with Sass and Duo.js
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var sass = require('gulp-sass');
var exec = require('child_process').exec;
gulp.task('browser-sync', function() {
browserSync.init({
proxy: "app.dev",
notify: false
@Teino1978-Corp
Teino1978-Corp / ion-google-place.js
Created November 12, 2015 18:25
Updated ion-google-place.js which only calls google map API when search is performed. Master at https://github.com/israelidanny/ion-google-place/blob/master/ion-google-place.js
angular.module('ion-google-place', [])
.directive('ionGooglePlace', [
'$ionicTemplateLoader',
'$ionicBackdrop',
'$q',
'$timeout',
'$rootScope',
'$document',
'$window',
function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $document, $window) {
@Teino1978-Corp
Teino1978-Corp / MicroMsg2.md
Created November 12, 2015 08:50
MicroMsg2 - Fast and light weight protocol

MicroMsg2

Micromessage2 is an application layer network protocol which intention is to be lightweight but flexible. Reliable means that it can make sure that all messages are delivered (if you want to). Flexible means that it supports extensions out of the box (using EXTENSION frames).

The protocol follows semantic versioning which means that client/servers that speak the same major version should be able to communicate, even if the minor version is not matching. But with reduced functionality.

Client/Server architecture

This library is based on the assumption that the one connecting acts as a client and the one accepting a connection acts as a server. However, both sides may receive connections. Hence the term server/client is only applied for the current connection and not the applications.

@Teino1978-Corp
Teino1978-Corp / filter_map.ts
Created November 12, 2015 08:35
filter map function for Rx.Observable.
import {Option} from 'option-t';
import {Observable} from 'rx';
type FilterMapFn<T, U> = (v: T) => Option<U>;
function filterMapForObservable<T, U>(source: Rx.Observable<T>, op: FilterMapFn<T, U>): Rx.Observable<U> {
const filtered = source.flatMap(function(v: T): Rx.Observable<U> {
const mapped: Option<U> = op(v);
const result: Rx.Observable<U> =
mapped.mapOrElse(function def(): Rx.Observable<U> {
@Teino1978-Corp
Teino1978-Corp / gist:b3dfd444833e89ae1ed5
Created November 12, 2015 01:05
commander.js command with actions
var program = require('commander');
program
.command('create [name]')
.description('create environment')
.action(function() {
console.log(1);
});
program