0.6: http://d.pr/g5z3
md5: 4c5ba5a26bac6f9bd24a40513171c448
0.7: http://d.pr/qXtg
md5: e58d282d591b27952bd14820f642d896
| " }}}2 ShowMarks {{{2 | |
| let g:showmarks_include='abcdefghijklmnopqrstuvwxyz' . 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| let g:showmarks_ignore_type="" | |
| let g:showmarks_textlower="\t" | |
| let g:showmarks_textupper="\t" | |
| let g:showmarks_textother="\t" | |
| let g:showmarks_auto_toggle = 0 | |
| nnoremap <silent> mo :ShowMarksOn<CR> | |
| nnoremap <silent> mt :ShowMarksToggle<CR> |
| class Score | |
| include MongoMapper::Document | |
| key :user_id, ObjectId, :index => true | |
| key :stage, String, :index => true | |
| key :score, Integer | |
| timestamps! | |
| def self.high_score_map | |
| <<-MAP |
| require File.expand_path('../config/application', __FILE__) | |
| require 'rake' | |
| module ::Dpp | |
| class Application | |
| include Rake::DSL | |
| end | |
| end | |
| module ::RakeFileUtils |
0.6: http://d.pr/g5z3
md5: 4c5ba5a26bac6f9bd24a40513171c448
0.7: http://d.pr/qXtg
md5: e58d282d591b27952bd14820f642d896
| defmodule Plug.Traefik do | |
| use Plug.Builder | |
| @assets_dir System.cwd <> "/priv/web/assets/" | |
| plug Plug.Static, at: "/assets", from: @assets_dir | |
| plug :x_forwarded_prefix | |
| def x_forwarded_prefix(conn, _) do | |
| register_before_send(conn, fn(conn) -> |
| FROM elixir:slim | |
| # install Node.js (>= 8.0.0) and NPM in order to satisfy brunch.io dependencies | |
| # See https://hexdocs.pm/phoenix/installation.html#node-js-5-0-0 | |
| RUN apt-get update -y && \ | |
| apt-get install -y curl git && \ | |
| curl -sL https://deb.nodesource.com/setup_13.x | bash - && \ | |
| apt-get install -y inotify-tools nodejs | |
| WORKDIR /code |
You can Rails 3 on App Engine, but it won’t be especially useful until bundler 10. You should try these instead:
Rails 2.3.5: DataMapper version: gist.github.com/268192
Rails 2.3.5: TinyDS version: gist.github.com/269075
The gems for the development environment include a pre-release appengine-tools gem that provides a pre-release version of jruby-rack.
| var app = angular.module('app', ['firebase']); | |
| app.controller('ctrl', function($scope, $pageArray) { | |
| $scope.pageItems = $pageArray(ref, 'number'); | |
| }); | |
| app.factory('$pageArray', function($firebaseArray) { | |
| return function(ref, field) { | |
| // create a Paginate reference | |
| var pageRef = new Firebase.util.Paginate(ref, field, {maxCacheSize: 250}); |
| /* Tobin Fricke's implementation of the | |
| Hoshen-Kopelman algorithm for | |
| cluster labeling. | |
| Copyright (c) September 9, 2000, by Tobin Fricke <fricke@gmail.com> | |
| Modified 2002-03-09 Tobin Fricke | |
| Modified substantially 2004-04-21 by Tobin Fricke | |
| This program is written in the 1999 standard of the C language (C99). Older C |
| function uploadPdfOcr() { | |
| authorize(); | |
| var key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // <-- developer key | |
| var file = UrlFetchApp.fetch("http://somewhere.com/path/file.pdf").getBlob(); | |
| var metadata = { title: file.getName() } | |
| var params = {method:"post", | |
| oAuthServiceName: "drive", | |
| oAuthUseToken: "always", | |
| contentType: "application/pdf", | |
| contentLength: file.getBytes().length, |