This file contains 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
source :rubygems | |
gem 'contextio', :git => 'https://github.com/alexdowad/Ruby-ContextIO.git', :branch => 'dev_2.0' |
This file contains 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
connection = ContextIO::Connection.new(key, secret) | |
link = connection.download_file(:account => account, :email => '[email protected]', :file_id => '502565f140c803556c000004', :as_link => 1) | |
p link |
This file contains 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 'gmail' | |
require 'net/ftp' | |
local_path = "tmp" | |
def ftp_to_bluehost(file) | |
ftp_user = "[email protected]" | |
ftp_pass = "pass" | |
ftp_host = "ftp.domain.com" | |
ftp_port = 21 |
This file contains 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
11:02:37 AM Johnny Goodman: your CPAP.com work was raw CSS right, no less/saas/stylus preprocessor stuff? | |
11:02:51 AM Clifton Labrum: correct | |
11:03:11 AM Johnny Goodman: thanks | |
11:03:25 AM Clifton Labrum: considering a CSS preprocessor? | |
11:04:20 AM Johnny Goodman: yeah, thinking of switching to RWD and getting our mobile presence going that way. Figure something like Stylus will fit in well there, as it buys is browser compatibility without the need for designers to get stressed out. | |
11:05:31 AM Clifton Labrum: yep... there are 2 tradeoffs with a preprocessor that have made me reluctant to go there yet: | |
11:06:52 AM Clifton Labrum: | |
1) Every CSS coder on the project must learn the same language (code becomes less portable) |
This file contains 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
text_in = "12:00:01 AM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15\n | |
05:20:01 PM 1 346 0.34 0.52 0.60\n | |
05:22:01 PM 21 362 12.05 3.52 1.60\n | |
05:24:02 PM 14 354 12.20 6.84 3.08\n | |
05:26:01 PM 13 365 9.93 7.65 3.83\n | |
05:28:01 PM 21 375 13.20 9.64 5.02\n | |
05:30:03 PM 16 364 16.43 12.16 6.53\n | |
05:32:02 PM 13 353 13.79 12.90 7.47\n | |
05:34:01 PM 28 370 14.36 13.67 8.42\n | |
05:36:01 PM 1 343 4.92 11.11 8.17\n |
This file contains 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
<!-- begin olark code --><script data-cfasync="false" type='text/javascript'>/*{literal}<![CDATA[*/ | |
window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};var a=f[z]._={},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={0:+new Date};a.P=function(u){a.p[u]=new Date-a.p[0]};function s(){a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild). |
This file contains 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
$html.="<!-- begin olark code --> | |
<script data-cfasync=\"false\" type='text/javascript'> | |
/*{literal}<![CDATA[*/ window.olark||(function(c){var f=window,d=document,l=f.location.protocol==\"https:\"?\"https:\":\"http:\",z=c.name,r=\"load\";\nvar nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};\nvar a=f[z]._={},q=c.methods.length;\nwhile(q--){(function(n){f[z][n]=function(){f[z](\"call\",n,arguments)}})(c.methods[q])}a.l=c.loader;\na.i=nt;\na.p={0:+new Date};\na.P=function(u){a.p[u]=new Date-a.p[0]};\nfunction s(){a.P(r);\nf[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent(\"on\"+r,s);\nvar ld=function(){function p(hd){hd=\"head\";return[\"<\",hd,\"></\",hd,\"><\",i,' onload=\"var d=',g,\";d.getElementsByTagName('head')[0].\",j,\"(d.\",h,\"('script')).\",k,\"='\",l,\"//\",a.l,\"'\",'\"',\"></\",i,\">\"].join(\"\")}\";\n var i=\"body\",m=d[i];\nif(!m){return setTimeout(ld,100)}a.P(1);\nvar j=\"appendChild\",h=\"createElement\",k=\"src\",n=d[h](\"div\"),v=n[j](d[h](z)),b=d[h](\"ifr |
This file contains 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 "about-johnnygoodman/version" | |
module About | |
module Johnnygoodman | |
# Your code goes here... | |
end | |
end |
This file contains 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 "about_johnnygoodman/version" | |
module AboutJohnnygoodman | |
# Your code goes here... | |
end |
This file contains 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_relative './vehicle' | |
class Automobile < Vehicle | |
attr_accessor :color, :make, :model, :year | |
def initialize(hash) | |
@color = hash[:color] | |
@make = hash[:make] | |
@model = hash[:model] | |
@year = hash[:year] |