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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
// Example based on http://www.smashingmagazine.com/2014/06/12/sassy-z-index-management-for-complex-layouts/ | |
// This example reduces effort and required code by using @each and #{} to make updating a z-index list the only effort needed. | |
$elements: project-covers, user-tooltip, sorting-bar, modals, navigation; | |
$modal-elements: field, form-controls, error, autocomplete-dropdown; |
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
<snippet> | |
<content><![CDATA[ | |
{ | |
"type": "color", | |
"name": "$1 Color", | |
"find": "#$2" | |
}, | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>lps:color</tabTrigger> |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$columns: 10 12; | |
$bp: 'lg'; | |
@for $i from 1 through length($columns) { | |
.flex-#{nth($columns, $i)} { |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$bp-small: 20em; | |
@mixin breakpoint($point) { | |
@if $point == small { | |
@media (min-width: $bp-small) { @content; } |
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 reader = new FileReader(); | |
reader.onerror = function (err) { | |
console.log('Error:', err); | |
}; | |
reader.onload = function (e) { | |
var text = reader.result; | |
debugger; | |
var buf = new Uint8Array(text); | |
// check for byte order mark | |
// 0xef, 0xbb and 0xbf in hex converts to 239, 187 and 191 in decimal |
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
#!/bin/bash | |
APIKEY="_APIKEY_"; #From Here https://api.slack.com/custom-integrations/legacy-tokens | |
CURRENTSTREAMINFO="" | |
while true | |
STREAM=$(osascript -e 'tell application "iTunes" to current stream title as string') | |
STREAMINFO=${STREAM/\([\d|:]+?\)$/""} | |
MESSAGE=$(echo "$STREAMINFO" | perl -MURI::Escape -ne 'chomp;print uri_escape($_),"\n"') |