var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://rawgit.com/micalevisk/TAP_feelings/master/gist/questoesColab.js';
document.head.appendChild(script);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Delete a gist of http://gist.github.com/ | |
# | |
# USE: | |
# ./deleteGist.sh <github-username> <gist-id> | |
# | |
# Created by Micael Levi on 11/26/2016 | |
# Copyright (c) 2016 [email protected]; All rights reserved. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env node | |
// USE: ./getInfoTwitchTv.js <channelname> | |
'use strict'; | |
if(process.argv.length < 2) return; | |
var channel = process.argv[2].trim(); | |
if(!channel) return; | |
var request = require('request'); | |
const URL = 'https://api.twitch.tv/kraken/streams/' + channel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Criptografia Simples. | |
* @author Micael Levi | |
* @version 02/03/2017 | |
*/ | |
String.prototype.isEmpty = function() { return !(this.trim()); } | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## convert RGB to 256 terminal color | |
rgb="${1//[!0-9,]/}" # 0..255,0..255,0..255 | |
echo -n "\e[0;38;2;${rgb//,/;}m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# List all channels in which a Twitch TV user is on chat. | |
# | |
# USAGE: | |
# ./list_channels.sh <user_id> <username> | |
# | |
# Created by Micael Levi on 22/01/2018 | |
# Copyright (c) 2018 <[email protected]> All rights reserved | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## solution1: $ sh arrow_key.sh | |
## solution2: $ sh arrow_key.sh 2 [-v] | |
: ' | |
a d e f m o u ASCII | |
61 64 65 66 6D 6F 75 HEX | |
HEX ASCII | |
0a \n or \s | |
1b 5b 41 \033[A # Up arrow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# (c) https://coderwall.com/p/ssuaxa/how-to-make-a-jar-file-linux-executable | |
# $ cat stub.sh helloworld.jar > hello.run && chmod +x helloworld.run | |
MYSELF=`which "$0" 2>/dev/null` | |
[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" | |
java=java | |
if test -n "$JAVA_HOME"; then | |
java="$JAVA_HOME/bin/java" | |
fi |
O erro sintático está no uso da tag meta
dentro do elemento <body>
:
<body>
<meta charset='UTF-8'>
Tipagem dinâmica significa que os tipos das variáveis são associadas à valores, e não à variáveis. Ou seja, o tipo de uma variável é inferido em tempo de execução, o que permite que ela seja variada no decorrer do código.
<?php
$foo = 'bar'; // tipo `string`
$foo = 123; // agora é do tipo `integer`
$foo = 1.3; // agore é do tipo `double`
OlderNewer