You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/12 22:46:49 UTC

[whimsy] branch master updated (4740cbc -> f0d5917)

This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git.

      from  4740cbc   Allow secretary and root to modify givenName
       new  b5e6179   change stylesheet to something with (a) absolute path, and (b) public access, pt. 2
       new  f0d5917   Test file for experiments

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 www/index.html      |  2 +-
 www/technology.html |  2 +-
 www/test/test.cgi   | 42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 www/test/test.cgi

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].

[whimsy] 02/02: Test file for experiments

Posted by cu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit f0d5917d5ba7f74e4bb8b6bcff634db88985e1ce
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Wed Apr 12 18:46:44 2017 -0400

    Test file for experiments
---
 www/test/test.cgi | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/www/test/test.cgi b/www/test/test.cgi
new file mode 100644
index 0000000..573bd98
--- /dev/null
+++ b/www/test/test.cgi
@@ -0,0 +1,42 @@
+#!/usr/bin/env ruby
+# Test file for various experiments
+$LOAD_PATH.unshift File.realpath(File.expand_path('../../../lib', __FILE__))
+require 'csv'
+require 'json'
+require 'whimsy/asf'
+require 'wunderbar'
+require 'wunderbar/bootstrap'
+require 'net/http'
+require 'whimsy/asf/themes'
+
+PAGETITLE = 'Listing of Apache Registered Trademarks'
+CSVFILE = "/Users/curcuru/src/foundation/Brand/trademark-registrations.csv"
+docket = CSV.read(CSVFILE, headers:true)
+docketcols = %w[ Mark Jurisdiction Class ]
+# Map Mark names to PMC identifiers (only openoffice.org so far)
+docket.each do |r|
+  r << ['pmc', r['Mark'].downcase.sub('.org','').sub(' & design','')]
+end
+dockethash = {}
+
+# Create hash based on pmc with aggregated data
+docket.each do |r|
+  key = r['pmc'].to_sym
+  if dockethash.key?(key)
+    # Aggregate specific values
+    docketcols.each do |col|
+      dockethash[key][col] |= [r[col]]
+    end
+
+  else
+    # Create first copy of the pmc
+    dockethash[key] = {}
+    docketcols.each do |col|
+      dockethash[key][col] = [r[col]]
+    end
+    # Hack: only use first Goods
+    dockethash[key]['Goods'] = r['Goods']
+  end
+end
+
+puts JSON.pretty_generate(dockethash)

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.

[whimsy] 01/02: change stylesheet to something with (a) absolute path, and (b) public access, pt. 2

Posted by cu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit b5e617931dafe08322de773327b597f9deac5351
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Wed Apr 12 18:22:07 2017 -0400

    change stylesheet to something with (a) absolute path, and (b) public access, pt. 2
---
 www/index.html      | 2 +-
 www/technology.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/index.html b/www/index.html
index b00ac18..ad1a02e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -5,7 +5,7 @@
     <title>Apache Whimsy</title>
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>Apache Whimsy Project And Server Code</title>
-    <link rel="stylesheet" type="text/css" href="members/assets/bootstrap-min.css?1491171314"/>
+    <link rel="stylesheet" type="text/css" href="/status/assets/bootstrap-min.css?1491171314"/>
     <style type="text/css">
       h2 {text-decoration: underline}
       header h2 span {display: none}
diff --git a/www/technology.html b/www/technology.html
index d8ae4be..21434a6 100644
--- a/www/technology.html
+++ b/www/technology.html
@@ -5,7 +5,7 @@
   <meta charset="utf-8"/>
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <title>Apache Whimsy Project And Server Code</title>
-  <link rel="stylesheet" type="text/css" href="members/assets/bootstrap-min.css?1491171314"/>
+  <link rel="stylesheet" type="text/css" href="/status/assets/bootstrap-min.css?1491171314"/>
   <style type="text/css">
   .footer { 
     margin-top: 20px;

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.