View dasdasdasdasdasdas
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
#EXTM3U | |
#EXTINF:-1,A&E tvg-logo="http://logocanais.ddns.net/Logo/A&E.png" group-title="Canais: Filmes e Series",A&E | |
http://tv.minhalista.me:80/351936198/x1fvglxrv1/37130 | |
#EXTINF:-1,A&E FHD tvg-logo="http://logocanais.ddns.net/Logo/A&E.png" group-title="Canais: Filmes e Series",A&E FHD | |
http://tv.minhalista.me:80/351936198/x1fvglxrv1/40263 | |
#EXTINF:-1,A&E HD tvg-logo="http://logocanais.ddns.net/Logo/A&E.png" group-title="Canais: FHD H.265",A&E FHD H.265 | |
http://tv.minhalista.me:80/351936198/x1fvglxrv1/36929 | |
#EXTINF:-1,[SHOW] Aerosmith | |
http://tv.minhalista.me:80/351936198/x1fvglxrv1/42571 | |
#EXTINF:-1,AMC |
View injection_demo.test.ts
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
// demo class | |
import Foo, { FunctioDIExample } from './injection_demo'; | |
import * as sinon from 'sinon'; | |
describe('Dependence injection', () => { | |
describe('Class', () => { | |
let putObject: any; | |
let instance: Foo; | |
before(() => { |
View demo-speedtest.py
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
# Python program to test | |
# internet speed | |
import speedtest | |
st = speedtest.Speedtest() | |
option = int(input('''What speed do you want to test: |
View wsgi.py
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
from app import app | |
if __name__ == "__main__": | |
app.run() |
View flask_video_streaming.py
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
import os | |
import sys | |
import re | |
import mimetypes | |
from flask import Flask, render_template, request, send_file, Response | |
app = Flask(__name__) | |
filename = '/Users/agutoli/Downloads/test1.mp4' |
View cache.py
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
def cache(func): | |
attr = '_cls_cache_' | |
def wrapper(*args, **kwargs): | |
cls = args[0] | |
key = str(args[1:]) + str(kwargs) | |
if not hasattr(cls, attr): | |
setattr(cls, attr, {}) | |
_cache = getattr(cls, attr) |
View pretty_java_test.java
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
package au.com.mydomain.api; | |
import org.junit.runner.RunWith; | |
import com.mscharhag.oleaster.runner.OleasterRunner; | |
import static com.mscharhag.oleaster.runner.StaticRunnerSupport.*; | |
import static org.junit.Assert.assertEquals; | |
import au.com.mydomain.api.ExampleState.State; |
View sequence_fibonacci.js
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
/** | |
* Bruno Agutoli | |
*/ | |
function fib(curr=0, prev) { | |
this.seq = this.seq || []; | |
let n = curr + prev; | |
if (n) { | |
n = curr + prev; |
View update_props_example.js
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
class SelectWrapper extends React.Component { | |
constructor(props){ | |
super(props) | |
this.state = { | |
options: [ | |
{value: "old", label: "Old value"} | |
] | |
} | |
} |
View s3_copy_files.js
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
const s3 = require('s3'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const distDir = path.join(path.dirname(fs.realpathSync(__filename)), '../DIRETORIO_COM_ARQUIVOS'); | |
const client = s3.createClient({ | |
s3Options: { | |
// accessKeyId: '', | |
// secretAccessKey: '', |
NewerOlder