Skip to content

Instantly share code, notes, and snippets.

View kristianmandrup's full-sized avatar

Kristian Mandrup kristianmandrup

  • Freelancer
  • Copenhagen
View GitHub Profile
This is a test ;)
# require gems
gem 'cucumber'
gem 'cucumber-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'webrat'
gem "thoughtbot-factory_girl"
# generate Cucumber infrastructure
run './script/generate cucumber'
#=======================
# Gem
#=======================
function gem_init_version {
rake version:write
rake version:bump:minor
}
function gem_version {
rake version
git clone git://github.com/snusnu/datamapper_on_rails3.git
cd datamapper_on_rails3
gem bundle
bin/rake db:create
bin/rake db:automigrate
./script/server
open http://localhost:3000/people
$(function() {
$(".sortable").sortable({cursor: 'pointer'});
$(".sortable").disableSelection();
});
$(function(){
//all hover and click logic for buttons
$(".fg-button:not(.ui-state-disabled)")
.hover(
function(){
WEB APP ARCHITECTURE
-----------
Client MVC
* Sproutcore
* mobile app wrapper - See screencast - San Diego rails group
* Rails 3 - REST services
- Data Mapper
- Key Value store
Homebrew is the way of the future..
1. Save list of installed ports
2. Uninstall macports
3. Install Homebrew
4. Install old ports using brew
1. Save list of installed ports
----------------------------
1. port installed > ports_installed.txt
The names after the ':' are the corresponding brews I found for my installed ports (Macports). I also added a few useful ones I didn't have installed as ports before. Many of these entries are identical and could be autogenerated with a script.
autoconf:autoconf213
boost:boost
bzip2:pbzip2
expat:expat
gettext:gettext
git-core:git
gmp:gmp
httperf:httperf
function install_mpfr {
lib_name=$1
if [ ! -d $lib_name ]
then
if [ ! -f $lib_name.tar.bz2 ]; then
curl -O http://www.mpfr.org/mpfr-current/$lib_name.tar.bz2
fi
tar xjf $lib_name.tar.bz2
cd $lib_name
./configure
DRAFT
-----
The idea is to find the fingerprint over every type of 'application' and sign the app with a signature, using configurable application matchers.
An application can have multiple application signatures.
Fx a client-server app My-Blog could consist of
- client app = Sproutcore
- server app = Rails app
The My-Blog app would then contain both a Sproutcore and Rails signature file