Skip to content

Instantly share code, notes, and snippets.

About our service

The number of online videos is increasing exponentially and it is getting increasingly difficult to retain people's attention to your lengthy videos. StepUp.io will solve this problem by converting any existing video clips into small and digestible chunks.

StepUp.io provides a simple online video editor that lets you cut any YouTube videos into bite sized steps, so that you can

  • Jump between each step quickly
  • Loop the part that matters to you
  • Share the most important moment
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css" media="screen">
.svg rect {
stroke: white;
fill: steelblue;
}
</style>
</head>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
font: 10px sans-serif;
}
.border {
color: yellow;
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
Desk Top Publisher:
    PI category: '1'
    PL category: '3'
    EL category: '5'
diff -ru /Users/makoto/src/simplerdb-0.2/lib/simplerdb/query_language.rb /Library/Ruby/Gems/1.8/gems/simplerdb-0.2/lib/simplerdb/query_language.rb
--- /Users/makoto/src/simplerdb-0.2/lib/simplerdb/query_language.rb 2008-03-15 04:26:01.000000000 +0000
+++ /Library/Ruby/Gems/1.8/gems/simplerdb-0.2/lib/simplerdb/query_language.rb 2008-10-20 12:05:15.000000000 +0100
@@ -14,17 +14,23 @@
# Execute the query
def do_query(query, domain, max = 100, token = 0)
- parse_result = @parser.parse(@lexer.lex(query))
token = 0 if token.nil?
# There are some old db files around. Need to wipe out.
rm -rf /var/lib/mysql/*
# Install mysql and xfs related libraries.
apt-get update && apt-get upgrade -y
apt-get install -y xfsprogs mysql-server libmysql-ruby libmysqlclient15-dev
# Create and attach volume to /vol using the example below
# Stop mysql, move /var/live/mysql to /vol , create new config, and start it up again.
# The detail is at http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663&categoryID=100
# Follow http://pandastream.com/docs/getting_started to grab panda.
# There are some old db files around. Need to wipe out.
rm -rf /var/lib/mysql/*
# Install mysql and xfs related libraries.
apt-get update && apt-get upgrade -y
apt-get install -y xfsprogs mysql-server libmysql-ruby libmysqlclient15-dev
# Create and attach volume to /vol using the example below
# Stop mysql, move /var/live/mysql to /vol , create new config, and start it up again.
# The detail is at http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663&categoryID=100
# Follow http://pandastream.com/docs/getting_started to grab panda.
@makoto
makoto / gist:20456
Created October 28, 2008 18:05
dm panda installation note
# There are some old db files around. Need to wipe out.
rm -rf /var/lib/mysql/*
# Install mysql and xfs related libraries.
apt-get update && apt-get upgrade -y
apt-get install -y xfsprogs mysql-server libmysql-ruby libmysqlclient15-dev
# Create and attach volume to /vol using the example below
def after_create
- self.uploaded_photo_ids.each{|photo| self.photos << Photo.find(photo)} unless self.uploaded_photo_ids.blank?
+ self.photos << Photo.find_all_by_id(self.uploaded_photo_ids.compact) unless self.uploaded_photo_ids.blank?
end
# Insertion and select all benchmarking
# Script mostly based from http://refactormycode.com/codes/240-datamapper-threaded-benchmark
# MySQL (InnoDB, No Index)
Rehearsal -------------------------------------------------------------
DataMapper data insertion 1.090000 0.100000 1.190000 ( 1.970768)
DataMapper single-thread 0.020000 0.000000 0.020000 ( 0.019654)
DataMapper threaded 0.020000 0.000000 0.020000 ( 0.017503)
---------------------------------------------------- total: 1.230000sec