Skip to content

Instantly share code, notes, and snippets.

@uchoaaa
uchoaaa / harcoded.vtt
Created October 28, 2020 22:44
Arquivo .srt original com a adição do "WEBVTT" como reader
WEBVTT
1
00:00:00,998 --> 00:00:03,833
- [funk playing]
- <i>♪ Yeah ♪</i>
2
00:00:03,835 --> 00:00:05,001
<i>Ha!</i>
@uchoaaa
uchoaaa / extension_changed.vtt
Created October 28, 2020 22:42
Arquivo .srt original apenas com a extensão alterada para .vtt
1
00:00:00,998 --> 00:00:03,833
- [funk playing]
- <i>♪ Yeah ♪</i>
2
00:00:03,835 --> 00:00:05,001
<i>Ha!</i>
3
WEBVTT
1
00:00:00.998 --> 00:00:03.833
- [funk playing]
- ♪ Yeah ♪
2
00:00:03.835 --> 00:00:05.001
<i>Ha!</i>
1
00:00:00,998 --> 00:00:03,833
- [funk playing]
- <i>♪ Yeah ♪</i>
2
00:00:03,835 --> 00:00:05,001
<i>Ha!</i>
3
require 'httparty'
require 'cgi'
require 'time'
require 'active_support/time'
class Temporize
include HTTParty
base_uri 'https://api.temporize.net/v1'
format :json
basic_auth '...', '...'
@uchoaaa
uchoaaa / botao_newsletter
Created June 6, 2012 14:40
CSS para gerar botao do newsletter
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>butao</title>
</head>
<body>
<style type="text/css" media="screen">
@import url(http://fonts.googleapis.com/css?family=Gochi+Hand);
/*
First all, you need put the WebSocketMain classes in your classpath.
To do that you can just copy-and-paste from web-socket-js/flash-src (http://github.com/gimite/web-socket-js/tree/master/flash-src/) to your project or generate a SWC and import it.
To generate a SWC you can follow http://www.mikechambers.com/blog/2006/05/19/quick-example-using-compc-to-compile-swcs/
Now you can instantiate a WebSocket class in your Air app.
NOTE:
With the code above I can connect to Pusher and got initial messages (connection_established).
#
# Author: Rafael Uchôa
# http://putshelloworld.wordpress.com
#
gem "brdinheiro", :version => ">= 2.1.6"
gem "brcep", :version => ">= 2.1.6"
gem "brcpfcnpj", :version => ">= 2.1.6"
gem "brdata", :version => ">= 2.1.6"
gem "brdinheiro", :version => ">= 2.1.6"
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
# Development and Distribution License("CDDL") (collectively, the
# "License"). You may not use this file except in compliance with the
# License. You can obtain a copy of the License at
#
# Brazilian Rails Template
# Author: Rafael Uchôa
# http://putshelloworld.wordpress.com/
#
#
# Feel free to fork it!
#