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
var NUM_ARTBOARDS = 360, | |
NUM_COLS = 6, | |
NUM_ROWS = NUM_ARTBOARDS / NUM_COLS, | |
LAYER_NAME = "Layer to modify", | |
CHANGE_PER_ARTBOARD = 360 / NUM_ARTBOARDS; | |
var document = context.document; | |
var firstArtboard = [[document artboards] firstObject]; | |
var yOffset = 0; | |
var frame = 2; |
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 () { | |
"use strict"; | |
var URL = 'https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerability-ever-96e328301f4c'; | |
if (window.opener) { | |
window.opener.location = 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
@inline(__always) private func isComment(marker: String) -> Bool { | |
return marker == "#" | |
} | |
isComment("#") | |
isComment("vt") |
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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadForGetBucketObjects", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
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
from subprocess import call | |
import sys | |
class Package: | |
def __init__(self, name, min=None, max=None): | |
self.name = name | |
self.min = min | |
self.max = max | |
def spec(self): |
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
#!/bin/bash | |
export PATH="/bin:/sbin:/usr/sbin:/usr/bin" | |
# export IFS=" \t\n" | |
unset IFS | |
echo "App installation path: $1" | |
AppPath=$1"/" | |
# provide second parameter to disable permission setting | |
set +e |
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
set nocompatible " be eMproved | |
filetype off " required! | |
" Vundle | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'vim-scripts/indentpython.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'jistr/vim-nerdtree-tabs' |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
class Value<T> { | |
private var value: T? | |
private let required: Bool | |
var isValid: Bool { | |
get { | |
return !required || value != nil |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Remap Caps Lock to Hyper</name> | |
<appendix>OS X doesn't have a Hyper. This maps Left Control to Control + Shift + Option + Command.</appendix> | |
<identifier>caps_lock_to_hyper</identifier> | |
<autogen> | |
--KeyToKey-- |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="avit" | |
# Example aliases |