Fonte Guia completo
A Pen by Andre Origamid on CodePen.
Fonte Guia completo
A Pen by Andre Origamid on CodePen.
A Pen by Léo Moraes on CodePen.
//https://youtu.be/4EzUtx-Q58I?t=1769 | |
//Funcoes puras e transparencia referencial | |
import 'dart:math'; | |
/// Funcao pura = sem side-effects | |
/// Altera somente as variaveis intenas | |
/// Doubles [n]. | |
int double(int n) => n * 2; |
// https://youtu.be/4EzUtx-Q58I?t=1370 | |
// High-order Function | |
int MyInt = 10; | |
// Add 1 to [1] //adiciona 1 | |
int add1(int a) => a + 1; | |
//Halve [a] //metade |
void main() { | |
// for (int i = 0; i < 5; i++) { | |
// print('hello ${i + 1}'); | |
// } | |
print((True)); | |
print((False)); | |
print("NOT"); | |
print(not(True)); |
import 'dart:async'; | |
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; | |
class AirHockey extends StatefulWidget { | |
@override | |
_AirHockeyState createState() => _AirHockeyState(); | |
} |
#!/bin/sh | |
# | |
# Bash script for uploading videos to Youtube.com | |
# | |
# Usage: | |
# ./youtube.bash path-to-movie-movie.mov | |
# | |
# Setup | |
# Goto https://console.developers.google.com | |
# Create app, enable Youtube Data API and create OAuth credentials, client id and client secret. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
const spinWheel = useCallback(() => { | |
// Receives the winner prop and search for his position in the spinner bets array | |
const order = [8, 1, 14, 2, 13, 3, 12, 4, 0, 11, 5, 10, 6, 9, 7]; | |
const position = order.indexOf(winner); | |
// Determine position where to land | |
const rows = 12; | |
const card = 80 + 2 * 2; | |
let landingPosition = rows * 15 * card + position * card; |
location / { # ~ domain=(.*)& { | |
rewrite_log on; | |
if ( $arg_callback ) { | |
echo_before_body '$arg_callback('; | |
echo_after_body ');'; | |
} | |
if ($args ~ "domain=(.*)&") { | |
set $key1 $1; | |
echo_before_body "$arg_callback("; | |
# proxy_pass http://whois.api.go.co/blah=$key1; |