View fake-contacts.rb
#!/usr/bin/env ruby
# gem install faker rest-client
# ./fake-contacts.rb 100
require 'faker'
require 'json'
require 'rest-client'
Faker::Config.locale = :fr
View .gitignore
/bug-rename-swift
/random
/vendor
View commands.md

Création de l'instance et des tokens

$ cozy-stack instances client-oauth cozy.tools:8080 http://localhost/ test-event github.com/cozy/cozy-stack
cfb477f48683e0468549abab6501ef47
$ export CLIENT_ID=cfb477f48683e0468549abab6501ef47
$ cozy-stack instances token-oauth cozy.tools:8080 $CLIENT_ID "io.cozy.jobs io.cozy.triggers io.cozy.queues"
eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhY2Nlc3MiLCJpYXQiOjE0OTAzNDIwODYsImlzcyI6ImNvenkubG9jYWw6ODA4MCIsInN1YiI6ImNmYjQ3N2Y0ODY4M2UwNDY4NTQ5YWJhYjY1MDFlZjQ3Iiwic2NvcGUiOiJpby5jb3p5LmpvYnMgaW8uY296eS50cmlnZ2VycyBpby5jb3p5LnF1ZXVlcyJ9.dwAAxCmrOsOHI0b9GFM8txGzaHI5YxmyjanGd_Vxpz9B4p_TTc7Ft5KTCMSbPibgYc3pbl2H6JVAWWjpO6qdrw
$ export ACCESS_TOKEN=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhY2Nlc3MiLCJpYXQiOjE0OTAzNDIwODYsImlzcyI6ImNvenkubG9jYWw6ODA4MCIsInN1YiI6ImNmYjQ3N2Y0ODY4M2UwNDY4NTQ5YWJhYjY1MDFlZjQ3Iiwic2NvcGUiOiJpby5jb3p5LmpvYnMgaW8uY296eS50cmlnZ2VycyBpby5jb3p5LnF1ZXVlcyJ9.dwAAxCmrOsOHI0b9GFM8txGzaHI5YxmyjanGd_Vxpz9B4p_TTc7Ft5KTCMSbPibgYc3pbl2H6JVAWWjpO6
View 1-instances-add
cozy@cozy-stack-v2:~$ ./cozy-stack instances add test.bruno.fr
INFO[0000] Instance created with success for domain test.bruno.fr
INFO[0000] Registration token: "37cddf40d7724988860fa0e03efd30fe"
View change_feed.md

Folders

Create

{ id: "5ddd48869033f0595a9619d46805e0da",
  changes: [ { rev: "1-21b1243be5cc354143d8613575225a74" } ],
  doc:
   { path: "/parent",
     name: "foo",
View analysis.yaml
text:
- "Western Europe antiquities"
- "Antiquités de l'Europe occidentale"
analyzer:
snowball_en:
type: snowball
language: English
snowball_fr:
type: custom
View output.json
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 2,
View Profiling
100.0% - …/bin/unicorn#<main>
167 Collapsed methods (show)
100.0% - …/action_view/template.rb#block in render
97.0% - …/complete_creations/_single_address.html.haml#_app_views_orders_wizard_complete_creations__single_address_html_haml__386521348274838379_97485080
20 Collapsed methods (show)
97.0% - …/complete_creations/_single_address.html.haml#block in _app_views_orders_wizard_complete_creations__single_address_html_haml__386521348274838379_97485080
85.0% - …/complete_creations/_single_address.html.haml#each_with_index
21 Collapsed methods (show)
85.0% - …/ordering/complete_creations.rb#option_price_structure
83.0% - …/ordering/complete_creations.rb#option_base_price_with_sale_applied
View Gemfile
source 'https://rubygems.org'
gem "ansi"
gem "jbuilder"
gem "sqlite3"
gem "activerecord"
gem "kaminari"
gem "elasticsearch-model", :github => "elasticsearch/elasticsearch-rails"
View conv.go
package main
import (
"fmt"
proj "github.com/pebbe/go-proj-4/proj"
)
const (
// Epsg = "+init=epsg:27572"
Epsg = "+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=2.33722917 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +pm=paris +units=m +no_defs no_defs <>"