Skip to content

Instantly share code, notes, and snippets.

View reynaldobarrosjr's full-sized avatar

Reynaldo Barros Jr reynaldobarrosjr

View GitHub Profile
if ($dbst->f($field->name)=='-default-'){
echo 'Padrão';
}
else
{
echo $dbst->f($field->name);
}
break;
@reynaldobarrosjr
reynaldobarrosjr / gist:6065014
Created July 23, 2013 18:43
Gemfile - Dreamhost - Rails 3.0
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'json'
@reynaldobarrosjr
reynaldobarrosjr / mailer.rb
Created September 20, 2017 17:25 — forked from max/mailer.rb
A simple Ruby script to send mass emails
require 'mail'
require 'csv'
FILE = ARGV[0]
Mail.defaults do
delivery_method :smtp, {
address: '',
port: 587,
domain: '',
user_name: '',
@reynaldobarrosjr
reynaldobarrosjr / index.html
Created January 1, 2018 15:23
Chat Live Vue tutorial - Page 59 of Book Vue Step by Step - Kindle Unlimited
<!DOCTYPE html>
<html>
<head>
<title>Chat Live example</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css">
<style type="text/css">
body{margin:20px;}
</style>
</head>
<body>
@reynaldobarrosjr
reynaldobarrosjr / index.html
Created January 3, 2018 13:02
Using Store on Vuejs - Example (Not working)
<!DOCTYPE html>
<html>
<head>
<title>Using Store on Vuejs - Example </title>
</head>
<body>
<div id="root"></div>
</body>
<script type="https://unpkg.com/vue"></script>
@reynaldobarrosjr
reynaldobarrosjr / pointspecificfolder.applescript
Last active February 21, 2018 11:56
Apple script que abre o terminal em uma pasta especificada por uma ação anterior no Automator.
on run {input, parameters}
tell application "Terminal"
activate
if (the (count of the window) = 0) or ¬
(the busy of window 1 = true) then
tell application "System Events"
keystroke "n" using command down
end tell
end if
do script "cd \"" & (POSIX path of ¬
@reynaldobarrosjr
reynaldobarrosjr / index.html
Last active May 8, 2018 20:58
I'm trying to iterate dinamically - with n timers... could you help me?
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="">
<title></title>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
@reynaldobarrosjr
reynaldobarrosjr / callbackexample.html
Last active May 9, 2018 20:38
Trying to do a dinamic array of timers.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="">
<title></title>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="./node_modules/easytimer/dist/easytimer.min.js"></script>
@reynaldobarrosjr
reynaldobarrosjr / startandtagerandom.html
Last active May 9, 2018 20:53
Creating random timers dinamically
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="">
<title></title>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="./node_modules/easytimer/dist/easytimer.min.js"></script>
@reynaldobarrosjr
reynaldobarrosjr / index.html
Created January 12, 2019 14:52
Simple Responsive Timeline
<script src="https://use.typekit.net/bkt6ydm.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<header class="example-header">
<h1 class="text-center">Simple Responsive Timeline</h1>
<p>Handcrafted by <a href="http://overflowdg.com" target="_blank">Overflow</a></p>
</header>
<div class="container-fluid">
<div class="row example-basic">
<div class="col-md-12 example-title">
<h2>Basic Timeline</h2>