Skip to content

Instantly share code, notes, and snippets.

View jonatasemidio's full-sized avatar

Jonatas Emidio jonatasemidio

View GitHub Profile
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget{
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Startup Name Generator',
@jonatasemidio
jonatasemidio / ConnectionFactory.java
Created September 8, 2017 12:08
ConnectionFactory using sqlite driver
package com.tecgraf.plugins.server.dao.conf;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionFactory {
public static Connection getConnection() {
try {
@jonatasemidio
jonatasemidio / POLYMER_INFO.MD
Last active June 12, 2017 21:47
Polymer usefull info

Try polimer in the Cloud9 IDE

Here OBS: Ypou can follow this steps but probably you will need to upgrade the node version

  • update node on cloud9 (easyest way): nvm install stable

OBS:

Some times, in cloud9 you need to upgrade your node version and for this use the info above

@jonatasemidio
jonatasemidio / README.md
Created June 8, 2017 18:46
Setting up a blank Cloud 9 workspace for Ruby and Sinatra Raw

Basic Sinatra Workshop Setup

Cloud 9 workspace for Ruby and Sinatra

  • Sign up for Cloud9

  • Create a BLANK workspace (Not Ruby and Not Rails)

  • Name the workspace hello-sinatra

@jonatasemidio
jonatasemidio / get_github_files.html
Created May 12, 2017 22:35
get file from github via ajax and github api [não está pronto]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
l=
["seguradora ",
"broker ",
"contrato ",
"tipoPlano ",
"referencia ",
"cob ",
"singleCob ",
"periodoContaInicial",
"periodoContaFinal ",
@jonatasemidio
jonatasemidio / checkIdeas.groovy
Last active June 27, 2016 18:54
Palindrome Algorithms Ideas
n = "99"
s = n.length()
println s%2==0 ? "${n[0..(s/2-1)]} ${n[s/2..-1]}" : "${n[0..(s/2-1)]} ${n[s.intdiv(2)]} ${n[s/2+1..-1]}"
println s%2==0 ? "${n[0..(s/2-1)] == n[s/2..-1]}" : "${n[0..(s/2-1)] == n[s/2+1..-1]}"
println s%2==0 ? n[0..(s/2-1)] == n[s/2..-1] : n[0..(s/2-1)] == n[s/2+1..-1]
@jonatasemidio
jonatasemidio / rubik.md
Last active May 17, 2016 12:50
Rubik's Cube
  1. cruz branca centro amarelo
  2. alinhe e, cada linha da cruz 2 de cada cor e inverta as faces de duas cores
  3. monte a face branca na base:
    • branca na esquerda = L’ U’ L
    • branca na direita = R U R’
    • branca no topo = R U2 R’ U’ R U R’
    • branca na base = R U R’
  4. alinhar a segunda camada:
    • meio direita = U R U’ R’ U’ F’ U F
  • meio esquerda = U’ L’ U L U F U’ F’
@jonatasemidio
jonatasemidio / dilma_boolean_case.md
Last active May 12, 2016 10:51
Dilma Boolean Case #DBC

Dilma Boolean Case

Então... Nossa president(a) sai ou não sai.

Salve Devs!!

Dilma

Dado nossa situação atual de indecisão sobre o caso da nossa president(a) Dilma! Decidi trazer essa pergunta em forma de um problema de lógica para o nosso contexto de exatas.

@jonatasemidio
jonatasemidio / gma.md
Last active June 26, 2016 13:41
Groovy Multiple Assignment