Last active
December 15, 2015 11:49
-
-
Save nathansmith/5256203 to your computer and use it in GitHub Desktop.
Revisions
-
nathansmith revised this gist
Mar 28, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def manifest_time # Seconds changes too frequently for # manifest, so HH:MM:00 or HH:MM:30. sec = t.sec > 30 ? 0 : 30 # Outputs this format... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec) -
nathansmith revised this gist
Mar 28, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,5 +12,5 @@ def manifest_time sec = t.sec > 30 ? 00 : 30 # Outputs this format... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec) end -
nathansmith revised this gist
Mar 28, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def manifest_time min = t.min # Seconds changes too frequently for # manifest, so HH:MM:00 or HH:MM:30. sec = t.sec > 30 ? 00 : 30 # Outputs this format... 2013-03-27 12:11:00 UTC -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,8 @@ def manifest_time min = t.min # Seconds changes too frequently for # manifest. Do HH:MM:30 or HH:MM:00. sec = t.sec > 30 ? 00 : 30 # Outputs this format... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec); -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ NETWORK: ../json #---------------------------------------------------------------------------------------------------- -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,9 @@ <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <title> Manifest Example </title> <link rel="stylesheet" href="./stylesheets/application.css" /> </head> <body> -
nathansmith revised this gist
Mar 27, 2013 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,6 @@ def manifest_time # manifest, so force it to HH:MM:00. sec = '00' # Outputs this format... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec); end -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,5 +11,6 @@ def manifest_time # manifest, so force it to HH:MM:00. sec = '00' # Will output like this... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec); end -
nathansmith revised this gist
Mar 27, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <!DOCTYPE html> <html lang="en" manifest="./offline/manifest.appcache"> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> -
nathansmith revised this gist
Mar 27, 2013 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
nathansmith revised this gist
Mar 27, 2013 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
nathansmith created this gist
Mar 27, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <!DOCTYPE html> <html lang="en" manifest="./path/manifest.appcache"> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <title>Manifest Example</title> <link rel="stylesheet" href="./stylesheets/application.css" /> </head> <body> <p> Just an example. </p> <script src="./javascripts/application.js"></script> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,46 @@ CACHE MANIFEST # LAST UPDATED: <%= manifest_time %> #---------------------------------------------------------------------------------------------------- # # INTERNET CONNECTION REQUIRED... # NETWORK: ../whatever #---------------------------------------------------------------------------------------------------- # # CACHE THESE FILES OFFLINE... # CACHE: # # CSS # ../stylesheets/application.css # # JavaScript # ../javascripts/jquery.js ../javascripts/application.js # # HTML # ../whatever.html # # Images # ../images/whatever.png This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Used to cache-bust <html manifest="..."> locally def manifest_time t = Time.now year = t.year month = t.month day = t.day hour = t.hour min = t.min # Seconds changes too frequently for # manifest, so force it to HH:MM:00. sec = '00' return Time.utc(year, month, day, hour, min, sec); end