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
| /** | |
| * Get the vimeo id. | |
| * @param {string} str - the url from which you want to extract the id | |
| * @returns {string|undefined} | |
| */ | |
| function vimeo(str) { | |
| if (str.indexOf('#') > -1) { | |
| str = str.split('#')[0]; | |
| } | |
| var id; |
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
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.3/js.cookie.min.js"></script> | |
| <script type="text/javascript"> | |
| (function($){ | |
| var getParameterByName = function(name, url) { | |
| if (!url) { | |
| url = window.location.href; | |
| } | |
| name = name.replace(/[\[\]]/g, "\\$&"); | |
| var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), | |
| results = regex.exec(url); |
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
| import fs from 'fs'; | |
| import finder from 'fs-finder'; | |
| import cheerio from 'cheerio'; | |
| import colors from 'colors'; | |
| import S from 'string'; | |
| //To refresh target folder, rm -rf target, mkdir target, cp -a backup/. target | |
| // npm Script: "reset": "rm -rf target && mkdir target && cp -a backup/. target" -> npm run reset | |
| console.log('Starting node Widgeter Script...'.green); |
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
| const incHash = (str) => { | |
| const singles = str.split(''); | |
| let incNext = false; | |
| let extendIt = false; | |
| for(let i = singles.length - 1; i > -1; i --){ | |
| if(incNext || i == singles.length - 1){ | |
| incNext = false; | |
| let ascii = singles[i].charCodeAt(0); | |
| if(ascii == 57){ | |
| ascii = 65; |
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 incUrlString(str){ | |
| var singles = str.split(''); | |
| var incNext = false; | |
| var extendIt = false; | |
| for(var i = singles.length - 1; i > -1; i --){ | |
| if(incNext || i == singles.length - 1){ | |
| incNext = false; | |
| var ascii = singles[i].charCodeAt(0); | |
| if(ascii == 57){ | |
| ascii = 65; |
NewerOlder