Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/bin/sh | |
| # Follows https://github.com/oortcloud/unofficial-meteor-faq#where-should-i-put-my-files | |
| # I release this into the Public domain -osirisx11 on freenode | |
| : <<'END' | |
| osiris@krypton:~/playpen$ ~/meteor-create.sh example | |
| example: created. | |
| To run your new app: | |
| cd example | |
| meteor |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // Grid shortcuts | |
| // use with https://github.com/anjlab/bootstrap-rails | |
| // | |
| // Columns for phones | |
| // - columns: .x[1-12] | |
| // For small devices (tablets and small desktops) | |
| // - columns: .s[1-12] | |
| // - offsets: .so[0-11] | |
| // - pushes: .sr[0-11] | |
| // - pulls: .sl[0-11] |
| <% provide :title, 'Consumer Profile | Update' %> | |
| <legend>Update your Profile</legend> | |
| <%= simple_form_for @consumer, :html => { :class => 'cons_edit form-horizontal' } do |f| %> | |
| <%= f.input :display_name, :label => "Public name", :placeholder => @consumer.user.username %> | |
| <%= f.input :tagline, :placeholder => "Your tagline" %> |
| #!/usr/bin/tclsh8.5 | |
| # | |
| # Usage: git-unmerged branch1 branch2 | |
| # | |
| # Shows all the non-common commits in the two branches, where non-common | |
| # commits means simply commits with a unique commit *message*. | |
| proc getlog branch { | |
| lrange [split [exec git log $branch --oneline] "\n"] 0 400 | |
| } |
| require 'singleton' | |
| # outputs a colored call-trace graph to the Rails logger of the lines of ruby code | |
| # invoked during a single request. | |
| # | |
| # Example: | |
| # | |
| # 1) Make sure this file is loaded in an initializer | |
| # | |
| # 2) Add the following to your application.rb in Rails3: |
| # This is example code for influencer notification using FullContact on node.js | |
| # Programming language used here is iced-coffee-script | |
| # Author: Maptia | |
| # License: public domain | |
| _ = require 'underscore' | |
| iced = require('iced-coffee-script').iced | |
| request = require 'request' | |
| fullContactAPIKey = '<your-fullcontact-api-key>' |
| require 'faraday_middleware' | |
| require 'hashie/mash' | |
| # Public: GeoIP service using freegeoip.net | |
| # | |
| # See https://github.com/fiorix/freegeoip#readme | |
| # | |
| # Examples | |
| # | |
| # res = GeoipService.new.call '173.194.64.19' |
| # Public: Implementation of "Strike a match" algorithm for calculating | |
| # similarity between strings. | |
| # | |
| # http://www.catalysoft.com/articles/StrikeAMatch.html | |
| # | |
| # Examples | |
| # | |
| # checker = StringSimilarityChecker.new('Quick brown fox') | |
| # | |
| # checker =~ 'quick brown ox' #=> true |
| # 1) Running a raw RackAdapter in config.ru mounted at '/' works fine | |
| require 'bundler/setup' | |
| require 'yard' | |
| run YARD::Server::RackAdapter.new( | |
| {'surfiki' => [YARD::Server::LibraryVersion.new('surfiki', nil, File.expand_path('../.yardoc', __FILE__))]}, | |
| { | |
| :single_library => true, | |
| :caching => false | |
| }) |