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
test |
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 params = { | |
clearTags: !0 | |
}, | |
doc = context.document, | |
cmd = context.command; | |
if (params.artboardFilter && 0 !== params.artboardFilter.length || (params.artboardFilter = !1), doc) { | |
for (var MSArtboardGroupClass = MSArtboardGroup["class"](), fileURL = doc.fileURL(), output = { | |
name: String(doc.displayName()), | |
path: String(fileURL.path()), | |
pages: [], |
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
// Copy Layer List to Clipboard | |
// Change this variables to configure the script: | |
var COPY_LAYER_TYPE = true, | |
TRAVERSE_GROUPS = true, | |
INDENT_GROUPS = true | |
var strRepeat = function(str, qty) { | |
if (qty < 1) return ''; |
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
/* | |
WorkCrew - a WebWorker work queue library | |
Usage: | |
// Create an 8 worker pool using worker.js. | |
var crew = new WorkCrew('worker.js', 8); | |
// Do something whenever a job is completed. | |
// The result object structure is |
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
window.requestAnimFrame = (function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60);};})(); | |
var easeInOutQuad = function (t, b, c, d) { | |
t /= d/2; | |
if (t < 1) return c/2*t*t + b; | |
t--; | |
return -c/2 * (t*(t-2) - 1) + b; | |
}; | |
var animatedScrollTo = function (element, to, duration) { |
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
@test: red; |
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
exports.init = function (generator, config) { | |
var io = require('socket.io').listen(1234); // put your unique port here | |
io.sockets.on('connection', function (socket) { | |
socket.emit('message', 'i am ready'); | |
socket.on('doStuff', function (data) { | |
generator.getDocumentInfo().then(function (document) { | |
socket.emit('message', 'working with document…'); | |
}, function (err) { | |
console.log(err); |
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
<header id="sourceheader"> | |
<a href="https://madebysource.com/"><strong id="sourceuser"></strong><span>Log in</span></a> | |
</header> | |
<script> | |
(function () { | |
var signedIn = false; | |
var signedInClass = 'signedin'; | |
var header = document.getElementById('sourceheader'); |
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
// variables - change only these | |
@headerBg: #1f1f1f; | |
@headerText: #a4a4a4; | |
@headerActive: #c63926; | |
@headerNotification: #579aff; | |
// computed | |
@headerDivider: fade(@headerText, 22%); | |
// styles |
NewerOlder