Skip to content

Instantly share code, notes, and snippets.

View maxdevjs's full-sized avatar
💭
╯︵ ┻━┻

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
@maxdevjs
maxdevjs / 00-general.md
Last active July 8, 2018 20:38
Flavio's Vue.js Handbook review

vuehandbook.com

Note:

  • dare preferenza a slang piuttosto che traduzione letterale del concetto nella madrelingua (obvious, but..)
  • ", and" (https://www.grammarly.com/blog/comma-before-and/)
  • in ogni caso preferenze regionali prevalgono (USA English Vs British English, esempio: restrictive relative clause / nonrestrictive relative clause)
@maxdevjs
maxdevjs / index.js
Created March 25, 2018 18:24
Adds parametric and random selection from an image's directory ('img') to Get started with Face detecting in nodejs ( https://medium.com/@AbderrahimSE/get-started-with-face-detecting-in-nodejs-d3c5fd97e701 ) code
const path = require('path'),
fs = require('fs');
const fr = require('face-recognition');
// load image from local
const IMAGE_BANK_SRC = 'img';
let pathImage = '';
//Grabs a random index between 0 and length
@maxdevjs
maxdevjs / _index.md
Last active October 1, 2017 20:26
Algumas ideias de modelagem do twitter clone, gems, layouts da home page e do tweet, etc

Design

  • help para mockup

Gems

  • gems requisito prévio
  • gems alternativas

System Design

@maxdevjs
maxdevjs / vimawesome.vim
Created May 17, 2017 19:38 — forked from junegunn/vimawesome.vim
Plugin completion using VimAwesome API
" ----------------------------------------------------------------------------
" vimawesome.com
" ----------------------------------------------------------------------------
function! VimAwesomeComplete() abort
let prefix = matchstr(strpart(getline('.'), 0, col('.') - 1), '[.a-zA-Z0-9_/-]*$')
echohl WarningMsg
echo 'Downloading plugin list from VimAwesome'
echohl None
ruby << EOF
require 'json'
@maxdevjs
maxdevjs / encoding-video.md
Created May 12, 2017 02:41 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc --with-opus
@maxdevjs
maxdevjs / infra-secret-management-overview.md
Created April 21, 2017 00:16 — forked from maxvt/infra-secret-management-overview.md
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@maxdevjs
maxdevjs / dom-helper.js
Created April 14, 2017 04:26 — forked from SitePointEditors/dom-helper.js
Mini jQuery, sort of.
/**
* A collection of helper prototype for everyday DOM traversal, manipulation,
* and event binding. Sort of a minimalist jQuery, mainly for demonstration
* purposes. MIT @ m3g4p0p
*/
window.$ = (function (undefined) {
/**
* Duration constants
* @type {Object}
@maxdevjs
maxdevjs / github-notifications
Created April 7, 2017 00:56 — forked from mdibaiee/github-notifications
GitHub Notifications in i3bar
#!/bin/bash
# put this in your bin directory, e.g. /usr/bin or ~/.local/bin
sleep 20 # update interval
# you have to generate a new ACCESS_TOKEN for yourself here (https://github.com/settings/tokens, you only need "notifications" access) and replace the value
response=$(curl -s https://api.github.com/notifications?access_token=ACCESS_TOKEN)
if [[ $response =~ "{" ]]
@maxdevjs
maxdevjs / README-Template.md
Created March 29, 2017 21:33 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Ionic App</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">