Skip to content

Instantly share code, notes, and snippets.

View charlenopires's full-sized avatar

Charleno Pires charlenopires

View GitHub Profile
@charlenopires
charlenopires / index.html
Created September 3, 2018 23:03
Desafio em Dart para um Meetup
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="scaffolded-by" content="https://github.com/google/stagehand">
<title>bolo</title>
<link rel="stylesheet" href="styles.css">
@charlenopires
charlenopires / main.dart
Created July 11, 2018 22:47
Example of Async/Await in Dart
import 'dart:async';
import 'dart:html';
Future main() async {
try{
final response = await HttpRequest.getString('https://rebounce.online/api/time');
print('Request was successful');
print(response);
}catch(error){
print('The request was not successful');
@charlenopires
charlenopires / Facebook-Content-Placeholder.markdown
Created November 28, 2014 02:00
Facebook Content Placeholder
@charlenopires
charlenopires / debug.keystore
Created November 12, 2017 23:00
Configuring KeyTool for Android
To local.properties in Gradle Directory
=============================
storeFile=debug.keystore
storePassword=android
keyAlias=AndroidDebugKey
keyPassword=android
Commands
============================
@charlenopires
charlenopires / Elastic-stroke-CSS-+-SVG.markdown
Created November 28, 2014 01:48
Elastic stroke CSS + SVG
@charlenopires
charlenopires / index.html
Last active May 18, 2017 00:41
DOM Practice1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@charlenopires
charlenopires / index.html
Created May 18, 2017 00:41
Perfs2Recursion
<input type="button" onclick="run()" value="Start" />
<div id="output" style="white-space:pre-wrap;">
</div>
@charlenopires
charlenopires / quicksort.erl
Created March 6, 2017 02:01 — forked from tsujigiri/quicksort.erl
Parallel quicksort in Erlang
-module(quicksort).
-export([quicksort/2]).
quicksort(List, SpawnFactor) when SpawnFactor > 0 ->
Self = self(),
Child = spawn(fun() -> quicksort(Self, List, SpawnFactor) end),
receive
{Child, SortedList} -> SortedList
end.
@charlenopires
charlenopires / erlang_one_liners.md
Created March 6, 2017 02:00
10 Erlang one liners to impress your friends

10 Erlang one liners to impress your friends

  1. Multiple Each Item in a List by 2:

[X * 2 || X <- lists:seq(1, 11)].
@charlenopires
charlenopires / Passcode-styled-list.markdown
Created November 28, 2014 04:45
Passcode styled list