Forked from Nikolay Talanov's Pen Skewed One Page Scroll.
This file contains 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 Timer = { | |
i: 0, | |
t: 0, | |
queue: {}, | |
tq: {}, | |
add: function (time, callback) { | |
if (!this.queue[time]) { | |
this.queue[time] = []; | |
this.tq[time] = 0; | |
} |
This file contains 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
// with search nad replace (regular expression ) | |
// @see http://stackoverflow.com/questions/35222560/how-to-wrap-links-in-a-with-notepad-find-replace-function | |
// @see also http://stackoverflow.com/questions/13673892/notepad-add-link-html-to-beginning-end-of-every-line-using-regular-expressio | |
//Find | |
[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?(\?([-a-zA-Z0-9@:%_\+.~#?&//=]+)|) | |
//Replace with | |
<a href="$&">$&</a> |
This file contains 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
// This function has no Interace , | |
// Run from Illusstrator. | |
// Tested with .png. | |
// more here : https://forums.adobe.com/thread/2055067 | |
function test(){ | |
var chosenFile = File.openDialog("Choose file"); | |
if(chosenFile != null){ | |
var infile = File(chosenFile.fsName.replace('file://', '')); | |
var outfile = File (chosenFile.path+"/"+chosenFile.name+".txt"); | |
infile.open ("r"); |
This file contains 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
/** | |
To update WordPress options with the new blog location, use the following SQL command: | |
note that this depends also on your folder structure ( wp in own folder here, not root ) | |
**/ | |
UPDATE wp_newsite_options SET option_value = replace(option_value, 'www.oldnetwork.com/multi', 'www.newsite.com/newsite') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
/** | |
After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query: | |
**/ |
This file contains 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
// This is a script ui for a window ( not panel ) | |
// https://forums.adobe.com/thread/1238745 | |
var box = new Window('dialog', "Some title"); | |
box.panel = box.add('panel', undefined, "Panel title"); | |
box.panel_text1 = box.panel.add('edittext', undefined, "Default_value_1"); | |
box.panel_text2 = box.panel.add('edittext', undefined, "Default_value_2"); | |
box.panel_text3 = box.panel.add('edittext', undefined, "Default_value_3"); | |
box.panel2 = box.add('panel', undefined, "Title (not displayed)"); |
This file contains 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 current date time | |
var currentDate = new Date(); | |
// get date | |
var date = currentDate.getDate(); | |
// get month index (January is 0) | |
var month = currentDate.getMonth(); | |
// get year |