Skip to content

Instantly share code, notes, and snippets.

View amsterdatech's full-sized avatar
💭
I may be slow to respond.

William Gouvea amsterdatech

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/env ruby
require 'fileutils'
prefix_input = ARGV[0]
prefix_output = ARGV[1]
suffixes = [".png", "@1.5x.png", "@2x.png", "@3x.png", "@4x.png"]
output_dirs = {
@amsterdatech
amsterdatech / http-ping.sh
Created February 18, 2020 04:21 — forked from henriquemenezes/http-ping.sh
HTTP Ping
function http-ping {
SLEEP=${2:-5}
while true; do echo "$(date +'%Y-%m-%d %H:%M:%S') - GET $1 - $(curl -sL -w "%{http_code}" -o /dev/null $1)"; sleep $SLEEP; done
}
@amsterdatech
amsterdatech / get_ip.sh
Created February 18, 2020 04:22 — forked from henriquemenezes/get_ip.sh
Get current IP addresses
#!/bin/sh
IP=""
OS=`uname`
case "${OS}" in
Linux)
IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
;;
FreeBSD|OpenBSD)
@amsterdatech
amsterdatech / vim.md
Created February 18, 2020 04:22 — forked from henriquemenezes/vim.md
Vim

Vimtutor:

Tips & Tricks

	:source $MYVIMRC	Reload .vimrc without restart vim, after reload run :e
	:e 			Reload buffer and trigger FileType event

Modes:

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@amsterdatech
amsterdatech / dicas.md
Created March 23, 2020 03:55 — forked from dmvieira/dicas.md
Dicas para entrar na área de dados

Como entrar na Área de Dados

Base

Então, vamos lá... Como material inicial para orientação temos o guia datascience.pizza... Se você prefere Podcast pode olhar o Pizza de Dados e o Data Hackers. Querendo um curso presencial, os únicos que indico são do Data Bootcamp que dou aula: https://databootcamp.com.br ... Para curso online existem vários no Coursera, Udemy, etc... Tem em português na Alura. Sobre o DataScienceAcademy eu não gosto muito e nem indico por várias questões.

Social

Você já tem Telegram? Se não, é muito bom entrar e olhar nos seguintes grupos que eu confio para saber das novidades e trocar uma ideia:

package com.actinarium.materialcue.analytics;
import android.app.Application;
import android.support.annotation.NonNull;
import android.util.Log;
import com.actinarium.materialcue.dto.Overlay;
import com.actinarium.materialcue.iab.PremiumStatus;
import com.actinarium.materialcue.iab.PremiumStatusChangeListener;
import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;