This file contains hidden or 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
| // @see https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html | |
| var AWS = AWS || {}; // Create the namespace | |
| AWS.SignatureV4 = { | |
| /** | |
| * Sign the request using AWS Signature Version 4 | |
| * @param {Object} opts - Request options containing method, host, path, region, and service | |
| * @param {Object} credentials - AWS credentials containing accessKeyId and secretAccessKey | |
| */ | |
| sign: function(opts, credentials) { |
This file contains hidden or 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 |
This file contains hidden or 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(() => { |
This file contains hidden or 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: |
This file contains hidden or 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() |
This file contains hidden or 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' |
This file contains hidden or 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) |
This file contains hidden or 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; |
This file contains hidden or 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; |
This file contains hidden or 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"} | |
| ] | |
| } | |
| } |
NewerOlder