Skip to content

Instantly share code, notes, and snippets.

@cybercent
cybercent / lispchain.lisp
Created July 12, 2018 13:34 — forked from BusFactor1Inc/lispchain.lisp
Lispchain - a blockchain implementation (sketch) in Common Lisp
;;
;; scheme coin - a lispchain (aka blockchain) implementation
;;
;; Burton Samograd
;; burton.samograd@gmail.com
;; Copyright - 2017
;;
;; Interested in helping out with the code? Email me.
;;
;; Bitcoin: 1HzWXjoQjzdLBm1eKeuWFrZx96kiop5GGy
namespace :ios do
desc "Export countries plist file"
task "countries:plist" => :environment do
plist = File.new("Countries.plist", "w")
plist.puts <<-eos
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
eos
@cybercent
cybercent / memory usage
Created April 9, 2014 08:17
Heroku memory usage
2014-04-09T08:01:47.421585+00:00 heroku[run.7166]: source=run.7166 dyno=heroku.19497443.ce1e5572-af82-4107-9db8-4642cfb7d134 sample#load_avg_1m=0.29 sample#load_avg_5m=0.08 sample#load_avg_15m=0.05
2014-04-09T08:01:47.421738+00:00 heroku[run.7166]: source=run.7166 dyno=heroku.19497443.ce1e5572-af82-4107-9db8-4642cfb7d134 sample#memory_total=88.32MB sample#memory_rss=87.66MB sample#memory_cache=0.66MB sample#memory_swap=0.00MB sample#memory_pgpgin=218756pages sample#memory_pgpgout=196145pages
2014-04-09T08:01:53.326581+00:00 heroku[resque.1]: source=resque.1 dyno=heroku.19497443.4a3ab97f-1227-4474-aaeb-034788942100 sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2014-04-09T08:01:53.327012+00:00 heroku[resque.1]: source=resque.1 dyno=heroku.19497443.4a3ab97f-1227-4474-aaeb-034788942100 sample#memory_total=122.91MB sample#memory_rss=122.89MB sample#memory_cache=0.03MB sample#memory_swap=0.00MB sample#memory_pgpgin=41474pages sample#memory_pgpgout=10008pages
2014-04-09T08:02:07.270827+00:
#import "UWFacebookService.h"
@implementation UWFacebookService
// Static
static const int ddLogLevel = LOG_LEVEL_DEBUG;
// Strong
@synthesize facebookGraphUser = _facebookGraphUser;
//
// Backbone.Rails.js
//
// Makes Backbone.js play nicely with the default Rails setup, i.e.,
// no need to set
// ActiveRecord::Base.include_root_in_json = false
// and build all of your models directly from `params` rather than
// `params[:model]`.
//
// Load this file after backbone.js and before your application JS.