Skip to content

Instantly share code, notes, and snippets.

Kristian Mandrup kristianmandrup

Block or report user

Report or block kristianmandrup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bdd-template
# 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'
View rails3_generator_gem
#=======================
# Gem
#=======================
function gem_init_version {
rake version:write
rake version:bump:minor
}
function gem_version {
rake version
View datamapper_rails3_install
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
View jquery-ui-app
$(function() {
$(".sortable").sortable({cursor: 'pointer'});
$(".sortable").disableSelection();
});
$(function(){
//all hover and click logic for buttons
$(".fg-button:not(.ui-state-disabled)")
.hover(
function(){
View Rails Sproutcore Archictecture
WEB APP ARCHITECTURE
-----------
Client MVC
* Sproutcore
* mobile app wrapper - See screencast - San Diego rails group
* Rails 3 - REST services
- Data Mapper
- Key Value store
View Converting macports to homebrew
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
View macports_to_brews
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
View install gcc 4.3.3
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
View Directory signatures
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
You can’t perform that action at this time.