Przeglądaj źródła

added new episodes, subscription to top nav

Harlan Iverson 7 lat temu
rodzic
commit
857601cedf

+ 2 - 1
ispooge.com-v2/app/resources/templates/md/pages/live.md

@@ -1,5 +1,6 @@
-{:title "iSpooge Live"
+{:title "Live"
  :page-index 100
+ :navbar? true
  :layout :live
  :video-thumbnail-url "/media/videos/Huel_Break-AYt0HH2AwOc.jpg"
  :video-url "https://ispooge.com/hls/ispoogedaily/index.m3u8"

+ 2 - 1
ispooge.com-v2/app/resources/templates/md/pages/subscriptions.md

@@ -1,6 +1,7 @@
 {:title "Subscriptions"
  :layout :subscriptions
- :page-index 50}
+ :navbar? true
+ :page-index 200}
 
 Subscriptions
 

+ 71 - 0
ispooge.com-v2/app/resources/templates/md/posts/2018-03-29-live-hacking-cljs-web.md

@@ -0,0 +1,71 @@
+{:title "Live Hacking Cljs Web" 
+ :tags ["video" "live"]
+ :layout :video
+ :video-yt-id "_UyL81wbxck"
+ :video-yt-additional-ids [] ; TODO, add to template.
+ :video-description "Live Hacking Reagent - Web Tech"
+}
+
+
+
+### Notes
+
+CLJS date parsing behavior with edge case inputs:
+
+```
+dev:uspooge-app.core=> (new js/Date nil)
+#inst "1970-01-01T00:00:00.000-00:00"
+dev:uspooge-app.core=> (new js/Date "")
+#inst "NaN-NaN-NaNTNaN:NaN:NaN.NaN-00:00"
+dev:uspooge-app.core=> (new js/Date)
+#inst "2018-03-29T18:35:28.244-00:00"
+dev:uspooge-app.core=> (new js/Date 0)
+#inst "1970-01-01T00:00:00.000-00:00"
+```
+
+
+#### Scripting a table in Cryogen
+
+Table can be found by iterating siblings from a known header. This is true as of 
+`[markdown-clj ""]`. 
+
+```
+function paintItBlack () {
+  var el = document.getElementById('roles_by_project');
+  while( el && el.nodeName.toLowerCase() != 'table') {
+    el = el.nextSibling;
+    console.log('next');
+  }
+  if (el) {
+    el.style.backgroundColor = 'black';
+    el.style.color = 'red';
+  }
+}
+```
+
+Run from console via `paintItBlack()` or via pasting `javascript:paintItBlack()` in the address bar and navigating.
+
+
+Can be made general by giving an ID and using CSS.
+
+
+Interesting selector: `document.querySelector('#roles_by_project + table')`
+
+* https://css-tricks.com/child-and-sibling-selectors/
+
+* https://kimblim.dk/css-tests/selectors/examples/preceding.html
+
+
+
+
+### Links
+
+* [Yesterday's Stream](/2018-03-28-live-hacking-reagent.html)
+* [http://www.pyco.me/import-clojurescript-into-es6-module/](http://www.pyco.me/import-clojurescript-into-es6-module/))
+* [http://javajdk.net/tutorial/calling-clojurescript-from-javascript/](http://javajdk.net/tutorial/calling-clojurescript-from-javascript/)
+* [shadow-cljs](http://shadow-cljs.org/)
+
+
+
+
+

+ 7 - 0
ispooge.com-v2/app/resources/templates/md/posts/2018-03-30-video-showntell.md

@@ -0,0 +1,7 @@
+{:title "Show and Tell, Mar 30, 2018"
+ :layout :video
+ :tags ["video" "live"]
+ :video-yt-id "AcEVIibu1CE"
+ :video-thumbnail-url "/media/videos/ispooge/showntell-mar3018.jpg"
+ :video-url "/media/videos/ispooge/showntell-mar3018.hls/playlist.m3u8"
+ :video-description "Showing off iSpooge and Tiny DataCenter at the beginning of the work day... about 2 weeks post construction." }

+ 0 - 1
ispooge.com-v2/app/resources/templates/themes/ispooge/html/base.html

@@ -42,7 +42,6 @@
                 <a href="{{nav-page.uri}}">{{nav-page.title}}</a>
                 </li>
                 {% endfor %}
-                <li><a href="/live.html">Live</a></li>
                 <li {% if archives %} class="active" {% endif %}><a href="{{archives-uri}}">Archives</a></li>
                 <li class="dropdown">
                     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">

+ 1 - 1
ispooge.com-v2/scripts/env.sh

@@ -16,5 +16,5 @@ HOSTS=ispooge.com
 
 
 NAME_STATIC=ispooge.com-static
-IMAGE_STATIC=docker-registry.local:5000/ispooge.com/ispooge-static:17
+IMAGE_STATIC=docker-registry.local:5000/ispooge.com/ispooge-static:18
 IMAGE_STATIC_LOCAL=ispooge-static