Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Uchoa uchoaaa

View GitHub Profile
@uchoaaa
uchoaaa / harcoded.vtt
Created Oct 28, 2020
Arquivo .srt original com a adição do "WEBVTT" como reader
View harcoded.vtt
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 Oct 28, 2020
Arquivo .srt original apenas com a extensão alterada para .vtt
View extension_changed.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
View sample.vtt
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>
View sample.srt
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
View gist:c5691336a80035914408
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 Jun 6, 2012
CSS para gerar botao do newsletter
View botao_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);
View WebSocketToPusher
/*
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).
View brazilian-rails-template.rb
#
# 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"
View nb_rspec_mediator.rb
#
# 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
View brazilian_rails_template.rb
#
# Brazilian Rails Template
# Author: Rafael Uchôa
# http://putshelloworld.wordpress.com/
#
#
# Feel free to fork it!
#
You can’t perform that action at this time.