Skip to content

Instantly share code, notes, and snippets.

View nobuti's full-sized avatar
Stop me

Buti nobuti

Stop me
View GitHub Profile
@nobuti
nobuti / gist:9131387
Created February 21, 2014 09:36
Bidi detection on inputs texts
// From http://closure-library.googlecode.com/svn-history/r27/trunk/closure/goog/docs/closure_goog_i18n_bidi.js.source.html
// with modifications
bidi_helpers = (function(){
var module = {}
/**
* Directionality enum.
* @enum {number}
*/
@nobuti
nobuti / gist:3816985
Created October 2, 2012 07:11
MySQL tables for continent names, country names and their ISO codes
CREATE TABLE IF NOT EXISTS `continents` (
`code` CHAR(2) NOT NULL COMMENT 'Continent code',
`name` VARCHAR(255),
PRIMARY KEY (`code`)
) ENGINE=InnoDB;
INSERT INTO `continents` VALUES
('AF', 'Africa'),
('AS', 'Asia'),
('EU', 'Europe'),
@nobuti
nobuti / composing-software.md
Created February 1, 2021 08:50 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

@nobuti
nobuti / sw.md
Last active June 20, 2020 06:17
Service worker force update
forceSWupdate () {
  if ('serviceWorker' in navigator) {
    navigator.serviceWorker.getRegistrations().then(function (registrations) {
      for (let registration of registrations) {
        registration.update()
      }
    })
  }
}
@nobuti
nobuti / RAILS_5_CHEATSHEET.md
Created April 13, 2020 03:59 — forked from harrietty/RAILS_5_CHEATSHEET.md
Ruby on Rails 5 Cheatsheet

Ruby on Rails Cheatsheet (5.1)

Architecture

RVM

$ rvm list - show currently installed Rubies

@nobuti
nobuti / .eslintrc
Created November 24, 2019 10:08 — forked from elijahmanor/.eslintrc
Add Prettier & ESLint to VS Code with a Create React App
{
"extends": ["react-app", "plugin:prettier/recommended"]
}
@nobuti
nobuti / malaga.md
Last active November 19, 2019 10:38
Málaga

Lo primero, llevadme, como y ocupo poco (aunque no lo aparente).

Fuera de broma, os puedo recomendar sitios donde comer y tapear, pero la noche no la controlo mucho, pero en el centro no faltan bares y pseudo discotecas. But:

@nobuti
nobuti / gulpfile.js
Created February 4, 2017 06:53 — forked from dverbovyi/gulpfile.js
ES6 project with Gulp, Sass, Babel & Browserify
/**
* Created by Dmytro on 3/27/2016.
*/
var browserify = require('browserify'),
gulp = require('gulp'),
sourcemaps = require('gulp-sourcemaps'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
@nobuti
nobuti / gist:4662944
Created January 29, 2013 09:21
Rakefile for small sinatra app, with a task to deploy to Webfaction.
require 'rubygems'
require 'bundler'
Bundler.require
require 'rspec/core/rake_task'
ENV['RACK_ENV'] ||= 'development'
task :default => :help
@nobuti
nobuti / frontend.md
Last active July 17, 2018 05:01
Frontend offer

DESCRIPTION

Visitame is looking for an enthusiastic frontend engineer to join to the team. In this role you will have significant responsibility in our project development team. Visitame looks for developers who take ownership of their code.

ABOUT US

We are Visitame, a Proptech startup which combines the best of Home IoT (Hardware and Software) to create an optimized and radically improved Real Estate selling process. We have already successfully launched an Alpha version to the market and we're ready now to scale it technically and commercially. We're a well-funded startup, with top corporate Real Estate clients and backed by 7r Ventures.

ABOUT YOU

You love code. You love to build great products with JavaScript, HTML, and CSS. You know JavaScript is imperfect, but you embrace its functional side and genuinely enjoy coding with it. You might like to talk about obscure computer science topics, but really, you just want to write simple code and ship new products and features to customers.

**You