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 characters
| body { | |
| background: #000; | |
| } | |
| .countdown { | |
| background: #000; | |
| color: #fff; | |
| display: table; | |
| margin: 0 auto; | |
| text-align: center; | |
| font-family: arial; |
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 characters
| getVideoId = { | |
| siteMap : { | |
| "youtube" : { | |
| r : /(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/, | |
| id : 5 | |
| }, | |
| "vimeo" : { | |
| r : /https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/, | |
| id : 3 | |
| }, |
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 characters
| var checkUrl = function(url) { | |
| var regex = new RegExp("(https?://(?:www.|(?!www))[^s.]+.[^s]{2,}|www.[^s]+.[^s]{2,})"); | |
| return url.match(regex) ? !0 : !1 | |
| }; |
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 characters
| require 'fileutils' | |
| on_stylesheet_saved do |filename| | |
| fileContents = File.read filename | |
| File.open(filename, 'w+') do |f| | |
| mediaQueryObject = {} | |
| regexMedia = /@media([^{]*){((?:(?!}\s*}).)*}.*?)}/xoim | |
| regexSelector = /\s*([^{]*){(.*?)}/xoim | |
| regexSpace = /\n+|\r+/xoim | |
| bodyContents = fileContents.gsub(regexMedia,'') | |
| mediaQueryArray = fileContents.scan(regexMedia) |
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 characters
| body #currentMediaQuery { | |
| display: none; | |
| } | |
| @media only screen and max-width 479px { | |
| body #currentMediaQuery { | |
| font-family: xxs; | |
| } | |
| } |
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 characters
| fileList=" | |
| FILE 1 URL | |
| FILE 2 URL | |
| FILE 3 URL | |
| ETC | |
| " | |
| for fileName in $fileList | |
| do | |
| echo "$fileName" |
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 characters
| String.prototype.toCapitalize = function() { | |
| return this.toLowerCase().replace(/^\.|\s\S/g, function(a) { | |
| return a.toUpperCase(); | |
| }); | |
| }; |
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 characters
| (function () { | |
| 'use strict'; | |
| var fo = window.fo = window.fo || {}, | |
| eventHandler = fo.eventHandler = fo.eventHandler || {}; | |
| eventHandler.events = {}; | |
| eventHandler.publish = function (event, data) { | |
| var events = event.split(' '), | |
| key, func; |
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 characters
| Object.prototype.assign = Object.assign || function(obj1, obj2) { | |
| var obj3 = obj1; | |
| for (var attrname in obj2) { | |
| if (typeof(obj2[attrname]) !== 'function') { | |
| obj3[attrname] = obj2[attrname]; | |
| } | |
| } | |
| return obj3; |
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 characters
| (function () { | |
| db = {}; | |
| db.map = { | |
| 'jobs': { | |
| 'create': { | |
| 'sql': 'CREATE TABLE "jobs" (id unique, json)' | |
| }, | |
| 'insert': { | |
| 'sql': 'INSERT INTO "jobs" (id, json) VALUES (?,?)' |