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
| #target Illustrator | |
| var requiredABsize = 1700; //px | |
| var activeDoc = app.activeDocument; | |
| var abActive = activeDoc.artboards[ activeDoc.artboards.getActiveArtboardIndex() ]; | |
| var abProps = getArtboardBounds(abActive); | |
| var scale = findRequiredScale(abProps); | |
| if (scale > 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
| # -*- coding: utf-8 -*- | |
| # @author: Peter Lamut | |
| import argparse | |
| import os | |
| import shutil | |
| N = 100 # the number of files in seach subfolder folder | |
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 java.io.BufferedInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class SendMessage { | |
| public static void sendToTelegram() { | |
| String urlString = "https://api.telegram.org/bot%s/sendMessage?chat_id=%s&text=%s"; |
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
| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // Comments or suggestions to tom@tbyrne.org |
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
| upstream example-webpack { | |
| server 127.0.0.1:8080; | |
| } | |
| upstream example-backend { | |
| server 127.0.0.1:3000; | |
| } | |
| server { | |
| listen 80; |
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
| // Replace SmartObject’s Content and Save as JPG | |
| // 2017, use it at your own risk | |
| // Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-photoshops-variable-data-or-scripts/93359 | |
| // JPG code from here: https://forums.adobe.com/thread/737789 | |
| #target photoshop | |
| if (app.documents.length > 0) { | |
| var myDocument = app.activeDocument; | |
| var theName = myDocument.name.match(/(.*)\.[^\.]+$/)[1]; | |
| var thePath = myDocument.path; |
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
| public class Main { | |
| public static void main(String[] args) { | |
| String[] humans = new String[10]; | |
| humans[1] = "test"; | |
| humans[2] = "test"; | |
| humans[3] = "test"; | |
| try { | |
| int i = 15; |