Skip to content

Instantly share code, notes, and snippets.

View regispires's full-sized avatar

Regis Pires Magalhaes regispires

View GitHub Profile
@senapk
senapk / ffmped_join.sh
Created March 5, 2021 19:09
Scripts para um workflow para gravação de aulas menos sofridos
#!/bin/bash
# junta todos os arquivos da extensao passada na pasta atual,
# desde que usem os mesmos codecs
# ./ffmpeg_join.sh flv saida.flv
[ -e __list__.txt ] && rm __list__.txt
for f in *."${1}"
do
echo "file $f" >> __list__.txt
done
@josepdecid
josepdecid / ColabReconnect.js
Last active November 2, 2023 10:06
Colab Reconnect
// Interval time to check if runtime is disconnected
interval = 1000 * 60;
// Busy/Reconnect button top-right
reloadButton = document.querySelector('#connect > paper-button > span')
setInterval(() => {
if (reloadButton.innerText == 'Reconnect') {
reloadButton.click();
console.log('Restarting');
@alexcjohnson
alexcjohnson / LICENSE
Last active July 16, 2024 15:13
Working with React and D3 together
The MIT License (MIT)
Copyright (c) Plotly, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 26, 2024 16:55
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active June 16, 2024 01:51 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
@parth1020
parth1020 / Google Maps Simple Multiple Marker Example
Created January 8, 2013 07:04
Google Maps Simple Multiple Marker Example
<html>
<head>
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<div id="map" style="height: 400px; width: 500px;">
</div>
<script type="text/javascript">
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
var instrutor = function(json, record) {
var nome = "";
record.instrutores.forEach(function(inst){ nome += (inst.nome + ", ") });
return nome;
}
var CursoFactory = Ext.data.Record.create(["id", "nome", "descricao",
{name:"instrutores", convert: instrutor}]);
var store = new Ext.data.Store({