Skip to content

Instantly share code, notes, and snippets.

View kristianmandrup's full-sized avatar

Kristian Mandrup kristianmandrup

  • Freelancer
  • Copenhagen
View GitHub Profile
@kristianmandrup
kristianmandrup / package.json
Created October 2, 2014 12:46
Ember-CLI package config for jspm integration :)
"jspm": {
"directories": {
"jspmPackages": "vendor"
},
"configFile": "config/jspm.js",
"dependencies": {
"handlebars": "handlebars.js@1.3.0",
"jquery": "^1.11.0",
"qunit": "github:jquery/qunit@^1.12.0",
"ember-qunit": "github:rwjblue/ember-qunit@0.1.5",
@kristianmandrup
kristianmandrup / mercury-macro.sjs
Last active August 29, 2015 14:09
Mercury macro
Trying to get from sth like:
'<cmp:sideBySideEditor />'
// '<div><cmp:MdEditor state="sideBySideEditor"/></div>'
And have the macro output:
"sideBySideEditor.render(state.sideBySideEditor)"
// "h('div', MdEditor.render(state.sideBySideEditor))",
@kristianmandrup
kristianmandrup / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
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
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