Skip to content

Instantly share code, notes, and snippets.

View jlndk's full-sized avatar

Jonas Lindenskov Nielsen jlndk

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
// Ajax File upload with jQuery and XHR2
// Sean Clark http://square-bracket.com
// xhr2 file upload
// data is optional
$.fn.upload = function(remote,data,successFn,progressFn) {
// if we dont have post data, move it along
if(typeof data != "object") {
progressFn = successFn;
successFn = data;
}
@jlndk
jlndk / Create iOS Icons.jsx
Last active May 16, 2016 07:06 — forked from twonjosh/Create iOS Icons.jsx
Combined 2 awesome script to make a batch ios icon exporter for photoshop. MSG Me for missing copyright (if there is a size you dont need, you can just comment those elements (add // in front of the line), and set the minSize varible to the size of your biggest export)
// Batch Export iOS Icons
// Copyright 2014
// Written by Jonas Lindenskov Nielsen (@jlndk)
//got parts of script from Jeffrey Tranberry (http://www.tranberry.com/photoshop/photoshop_scripting/PS4GeeksOrlando/IntroScripts/openFolder.jsx)
//got parts of script from Appsbynight on github (https://gist.github.com/appsbynight/3681050)
/*
Description:
This Script will export all of your files in a folder, to iOS Icons