Skip to content

Instantly share code, notes, and snippets.

View willmadruga's full-sized avatar
💭
(while true (learn))

William Madruga willmadruga

💭
(while true (learn))
View GitHub Profile
' LotusScript code
'/**
' * Classe Email - Utilizada para preparar e formatar emails.
' * @author Bjorn Cintra
' * @Modified by William Madruga on 14/04/2009
' * Added Principal field
' */
Public Class Email
Private m_session As NotesSession
'// this is LotusScript code categorized as vb.net because github has no lotus notes category :P
'/**
' * Substitui um elemento de um array
' * @param arrOrigElements (Variant) - Array
' * @param strOrigElement (String) - Elemento a ser substituido
' * @param strElement (String) - Elemento a ser inserido
' * @return Novo array
' * @author ???
' */
'// this is LotusScript code categorized as vb.net because github has no lotus notes category :P
Public Function GetHash(strString As String, strSeparator1 As String, strSeparator2 As String) As Variant
Dim lstHash List As String
Dim ArgsList As Variant
ArgsList = Split(strString, strSeparator1)
Dim ArgKey As String
Dim ArgValue As String
#!/usr/bin/ruby
require 'googlecalendar/calendar'
require 'date'
require 'kconv'
require 'nkf'
require 'notes_lib'
#--------------------------------------------------------------------------#
# Require
'// this is LotusScript code categorized as vb.net because github has no lotus notes category :P
Public Class ArrayList
Private m_lstArray List As Variant
Private m_intCount As Integer
Private m_intIndex As Integer
Private m_bolBreak As Boolean
Private m_bolChanged As Boolean
Private m_arrValues() As Variant
=begin
Regex Tester Helper
William <willpaixao@gmail.com>
20/02/2009 00:48
Testar padrões regex em todas as palavras colocadas no arquivo dados.yaml.
Os dados do arquivo yaml deverão ser tratados como sequences, ou seja, criados com um traço na frente.
Ex.:
dados.yaml
# willpaixao@gmail.com
# agora só preciso preencher o captcha e clicar em thanks :P
# TODO: como preencher o captcha automaticamente? o.O
# 12-01-2008
# uso: ./reminder.rb lembrete 12/01/2009 17:10
require 'rubygems'
require 'hpricot'
require 'watir'
@willmadruga
willmadruga / gist:27693
Created November 21, 2008 23:37
macbook_battery_calibration
Tradução Livre
Calibrando a bateria do macbook para melhor performance
http://support.apple.com/kb/HT1490
1. ligar na tomada e carregar toda a bateria até que a luz de power mude para verde e o indicador na tela diga que está completamente carregado.
2. Deixe a bateria completamente carregada por no mínimo 2 horas. Eu posso usar o macbook contanto que esteja ligado na tomada.
3. Desligar da tomada com o macbook ainda ligado e usar até que acabe completamente a bateria. Quando a bateria tiver baixa, receberei um aviso na tela.