Skip to content

Instantly share code, notes, and snippets.

View sferik's full-sized avatar

Erik Berlin sferik

View GitHub Profile
@sferik
sferik / why_software_is_eating_the_world.md
Last active December 25, 2019 15:43
Why Software Is Eating The World

Why Software Is Eating The World

August 20, 2011

This week, Hewlett-Packard (where I am on the board) announced that it is exploring jettisoning its struggling PC business in favor of investing more heavily in software, where it sees better potential for growth. Meanwhile, Google plans to buy up the cellphone handset maker Motorola Mobility. Both moves surprised the tech world. But both moves are also in line with a trend I've observed, one that makes me optimistic about the future growth of the American and world economies, despite the recent turmoil in the stock market.

In short, software is eating the world.

@sferik
sferik / homework.md
Last active December 15, 2015 12:09

WDI Homework - March 27, 2013

Tic-Tac-Toe

Create a two-player tic-tac-toe game in Ruby.

Requirements
  • Must define at least two classes
  • Must define at least one exception class
  • Must use at least one Array
  • Must use at least one Hash
class Menu
attr_reader :first, :last
def initialize
@first, @last = 2.times.collect{|i| prompt(i + 1)}
end
def prompt(number)
print "Enter number #{number}:\t"
gets.chomp.to_i
# API v1.1, HTTPS
# Expected: {\"errors\":[{\"message\":\"Bad Authentication data\",\"code\":215}]}
# Raises: EOFError: end of file reached
require 'net/http'
uri = "https://api.twitter.com/1.1/users/show.json?user_id=33978"
Net::HTTP.get(URI(uri))
# API v1, HTTPS
# Expected: {\"errors\":[{\"message\":\"Bad Authentication data\",\"code\":215}]}
# Raises: EOFError: end of file reached
/*! normalize.css 2012-07-07T09:50 UTC - http://github.com/necolas/normalize.css */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects `block` display not defined in IE6/7/8/9 & FF3.
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Your description goes here">
<meta name="keywords" content="one, two, three">
<title>Blank Template</title>
<!-- external CSS link -->

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@sferik
sferik / bookmarks.md
Last active December 13, 2015 17:48
Web Programming with Ruby on Rails
-----BEGIN CERTIFICATE-----
MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
aWsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2NvbTAe
Fw0xMzAyMDMxMDAyMjdaFw0xNDAyMDMxMDAyMjdaMD0xDzANBgNVBAMMBnNmZXJp
azEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0x5dx8uKxi7TkrIuyBUTJVB
v1o93nUB9j/y4M96gV2rYwAci1JPBseNd6Fybzjo3YGuHl7EQHuSHNaf1p2lxew/
y60JXIJBBgPcDK/KCP4NUHofm0jfoYD+H5uNJfHCNq7/ZsTxOtE3Ra92s0BCMTpm
wBMMlWR5MtdEhIYuBO4XhnejYgH0L/7BL2lymntVnsr/agdQoojQCN1IQmsRJvrR
duZRO3tZvoIo1pBc4JEehDuqCeyBgPLOqMoKtQlold1TQs1kWUBK7KWMFEhKC/Kg