This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'scrubyt' | |
Scrubyt.logger = Scrubyt::Logger.new | |
market_data = Scrubyt::Extractor.define do | |
fetch 'http://Salesforce.com/' | |
contents "/html/body" | |
end | |
puts market_data.to_xml | |
market_data = Scrubyt::Extractor.define do | |
fetch 'http://www.salesforce.com/products/sales-force-automation/sales-management/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, | |
Nice to meet you, how is everything, hope all is well with you. My name is Madam Avelin Regato, I found your contact after reading your profile I picked interest to contact you. I’ve something very important which I would love to share with you privately, therefore, would advise you to kindly write me back on: (avelin_regato7@yahoo.com) so that I’ll give you details. Waiting anxiously for your anticipated corporation, | |
Yours, | |
Madam Avelin | |
Email me on: avelin_regato7@yahoo.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
RSLT='' | |
GIT_BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' | awk '{print $2}'` | |
if [ "$GIT_BRANCH" ] | |
then | |
GIT_STATUS=`git status 2> /dev/null | grep 'working directory clean'` | |
CLR='2' | |
if [ "$GIT_STATUS" ] | |
then | |
CLR='2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-------------------------+-------------------+ | |
| username | geoloc_ip_address | | |
+-------------------------+-------------------+ | |
| Carsten | 208.124.190.170 | | |
| mawstools | 66.241.81.107 | | |
| kaitomono | 209.53.139.139 | | |
| oksohow | 122.169.38.118 | | |
| VoonC | 116.206.165.235 | | |
| binaljavia | 124.247.216.162 | | |
| mehovering | 220.226.16.252 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In response to all the responses to: | |
http://twitter.com/rtomayko/status/1155906157 | |
You should never do this in a source file included with your library, | |
app, or tests: | |
require 'rubygems' | |
The system I use to manage my $LOAD_PATH is not your library/app/tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Twitter: Don't Click</title> | |
<style> | |
iframe { | |
position: absolute; | |
width: 550px; | |
height: 228px; | |
top: -170px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: ['git'], | |
arguments: [{role: 'object', nountype: noun_arb_text, label: 'query'}], | |
icon: "http://github.com/favicon.ico", | |
homepage: "http://mrgossett.com", | |
author: {name: "Tim Gossett", email: "tim@mrgossett.com"}, | |
license: "Creative Commons", | |
description: "Search GitHub repositories", | |
help: "Start typing a search term", | |
execute: function(args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a gist from the specified text or the contents of the selected file | |
-- | |
-- Author: Brian Smith <bsmith@swig505.com> | |
using terms from application "Quicksilver" | |
on process text str | |
my growlRegister() | |
do shell script "echo '" & str & "' | /usr/local/bin/gist" | |
growlNotify("Gist Created!", "URL has been copied to clipboard") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# iPhone Application Post Build Script | |
# 1. 在XCode左边栏选中相应的Target | |
# 2. 在菜单中选择Project -> New Build Phase -> New Run Script Build Phase . | |
# 3. 弹出的对话框中,Shell里填写/usr/bin/ruby, Script中填写上面的脚本代码. | |
# http://www.robinlu.com/blog/archives/371 | |
if ENV["BUILD_STYLE"] == "Distribution" && ENV["ARCHS"] == 'armv6' | |
common_git_paths = %w[/usr/local/bin/git /usr/local/git/bin/git /opt/local/bin/git] |
OlderNewer