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
$scope.generateData = function(n) { | |
var fakeData = {"keys":[], "values":[]}; | |
var months = [ | |
"Jan", | |
"Feb", | |
"Mar", | |
"Apr", | |
"May", | |
"Jun", |
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
<p> | |
We live in a time, where cameras are ubiquitous. It is not because there are a few surveillance cameras installed here and there. It is because cameras are so cheap and tiny that almost everyone carries one around in their pocket. We are documenting our lives to share those moments with our family, friends and the rest of the world. Photos are more than ever a proof of existence. Pics or it didn’t happen. | |
</p> | |
<p> | |
<strong>Photo sharing and privacy</strong> | |
</p> | |
<p> | |
Given the fact, that more than half a billion photos are shared publicly every day, it is not surprising that cameras even find their way into watches, glasses and other wearables. The urge to document everything might be satisfied by generating a continuous life log. But when everyone is documenting everything and shares it with everyone, how does this affect our privacy and mutual social behavior? How do we protect ourselves from becoming too transparent? |
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
// Selects all text layers that have the same text style as the reference text layer (command control t) | |
// init | |
var layerCount = 0; | |
var pageCount = 0; | |
var lastFoundOnPage = -1; | |
var selectedLayers = []; | |
var i = 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
// This plugin selects all layers that have the same fill color as the currently selected layer/s (command shift c) | |
// Can be used to combine colors that are visually very similar | |
#import 'inventory.js' | |
// Get an array of all selected colors | |
var count = 0; | |
var referenceColors = []; | |
var pages = [[doc pages]objectEnumerator]; |
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
getColorOf: function(layer) { | |
var color = null; | |
var fill = null; | |
if ([layer isKindOfClass:[MSTextLayer class]]) { | |
color = [layer textColor]; | |
} | |
try { | |
fill = [[[layer style] fills] firstObject]; | |
if (fill !== null && [fill isEnabled] && [fill fillType] === 0) color = [fill color]; | |
} catch (error) { |
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
// Selects all text layers that have the same color as the reference layer | |
#import 'inventory.js' | |
// init | |
(function() { | |
var pageCount = 0, | |
color = null, | |
fill = null, | |
i = 0, | |
lastFoundOnPage = -1, |
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
/* Text Styles from Sketch */ | |
.body-small { | |
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
color: #333333; | |
line-height: 21px; | |
} | |
.placeholder { |
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 com = com || {}; | |
com.getflourish = (function() { | |
var my = {}; | |
my.execute = function(block) { | |
try | |
{ | |
block(); | |
} |
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 com = com || {}; | |
com.getflourish = (function() { | |
var my = {}; | |
my.execute = function(block) { | |
try | |
{ | |
block(); | |
} |
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
// (shift control cmd c) | |
function theFunction() { | |
var color = null, | |
results = 0, | |
referenceColor = null, | |
selected = null; | |
if (selection.count() == 1) { |
OlderNewer