Skip to content

Instantly share code, notes, and snippets.

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=n(o),s=r(2),a=n(s),u=r(21),c=r(22),f=n(c),d=r(23),l=n(d),y=void 0,h=!1,p=function(){function e(t,r,n){(0,i["default"])(this,e),n=n||r.options_,t.src&&(this.el_=r.el(),this.player_=videojs(n.playerId),this.protection_=t&&t.protection,this.tech_=r,this.onCertificateError=this.onCertificateError.bind(this),this.onCertificateLoad=this.onCertificateLoad.bind(this),this.onKeySessionWebkitKeyAdded=this.onKeySessionWebkitKeyAdded.bind(this
calexico_80e78a92_3d59_4b58_a58f_18187f43fdb4
gq_sexy_095e3b6d_34a0_468b_bc38_cf0824e96370
hood_fella_2788b0cd_abd4_462c_b955_5b2302ad03f0
work_sucks_c9703be0_034c_4f1e_832a_30887d59cc09
breaking_car_chase_a2e8ad87_2def_4665_94e4_36d43f4bcc26
big_little_bro_57f48bbb_8de3_46b5_a3e4_adb00995497c
juan_saldana_drive_through_7d81ee64_4cae_4b96_83ad_4d14ead5ec69
buzzy_enniss_mr_t_0e15d573_14ef_429f_806e_230bf77c1213
tyler_boeh_facebook_38df2a5b_debc_4e5f_8887_b850755fe623
tobe_hixx_growing_up_44f29321_24a0_4f58_bf47_aad5147f62af
using System;
using System.Text;
using System.Security.Cryptography;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Security;
using System.IO;
namespace CreateSign
{
static class MainClass
@nikitug
nikitug / postsql.sql
Created May 17, 2012 07:34 — forked from tobyhede/postsql.sql
PostgreSQL as JSON Document Store
-- PostgreSQL 9.2 beta (for the new JSON datatype)
-- You can actually use an earlier version and a TEXT type too
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8
-- JSON Types need to be mapped into corresponding PG types
--
-- Number => INT or DOUBLE PRECISION
-- String => TEXT
@nikitug
nikitug / compile.rb
Created April 4, 2012 13:31
JRuby compile
require 'jruby-jars'
classpath = [JRubyJars.core_jar_path, JRubyJars.stdlib_jar_path].join(File::PATH_SEPARATOR)
files = Dir["**/*.rb"].reject{|file| file.match(/compile\.rb$/)}
%x{java -Djruby.compat.version=1.9 -classpath #{classpath} org.jruby.Main -S jrubyc #{files.join(" ")}}
files.each do |ruby_source|
File.open(ruby_source, "w") { |f| f.write("require __FILE__.sub(/\.rb$/, '.class')") }
end
@nikitug
nikitug / config.ru
Created March 1, 2012 18:55
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
# Run this file with `RAILS_ENV=production rackup -p 3000 -s thin`
# Be sure to have rails and thin installed.
require "rubygems"
# We are not loading Active Record, nor the Assets Pipeline, etc.
# This could also be in your Gemfile.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
require "rails"
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
@nikitug
nikitug / mysql_table_size.sql
Created June 25, 2010 13:33
MySQL table size
SELECT
table_name,
engine,
ROUND(data_length/1024/1024,2) AS total_size_mb,
table_rows
FROM
information_schema.tables
WHERE
table_schema=DATABASE();
@nikitug
nikitug / .irbrc.rb
Created April 11, 2010 18:29 — forked from dekart/.irbrc.rb
~/.irbrc
# Put this content to ~/.irbrc file (no extension)
require "rubygems"
begin
require "ap"
rescue LoadError => err
puts "Cannot find awesome_print gem. Please run 'gem install awesome_print' to install it."
end