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 vh($vh) { | |
@return calc(var(--vh, 1vh) * #{$vh}); | |
} | |
@mixin vh($vh, $prop: height) { | |
#{$prop}: $vh * 1vh; | |
#{$prop}: vh($vh); | |
} |
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
<script> | |
import { TimelineMax, Power0, Power3 } from 'gsap' | |
import { find, hasClass } from '../scripts/elements' | |
import { addListener } from '../scripts/events' | |
import SpanOrBreak from './SpanOrBreak.vue' | |
/// UTILS | |
const shuffle = arr => { |
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
varying vec2 vUv; | |
uniform float bendAngle; | |
uniform vec2 bounds; | |
uniform float bendOffset; | |
uniform float bendAxisAngle; | |
vec3 bend(vec3 ip, float ba, vec2 b, float o, float a) { | |
vec3 op = ip; | |
ip.x = op.x * cos(a) - op.y * sin(a); | |
ip.y = op.x * sin(a) + op.y * cos(a); |
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
/** | |
* resizeText | |
* by Mario Sommer <mariosommer.at> | |
* | |
* based on Jeremy Apthorp's approach - thanks Jeremy | |
* improved performance by using binary seach algorithm to find font size | |
*/ | |
export const resizeText = (el, opts = {}) => { | |
if (!opts.width && !opts.height) { |
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
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | |
if (!Array.prototype.includes) { | |
Object.defineProperty(Array.prototype, 'includes', { | |
value: function(searchElement, fromIndex) { | |
// 1. Let O be ? ToObject(this value). | |
if (this == null) { | |
throw new TypeError('"this" is null or not defined'); | |
} |
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
Show hidden characters
[ | |
/* @EMPTY WINDOW | |
* Style for empty (no tabs) window | |
========================================================================= */ | |
{ | |
"class": "sheet_container_control", | |
"layer0.tint": [39, 40, 34], | |
"layer0.opacity": 1.0 |
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
[ | |
{ "keys": ["ctrl+h"], "command": "unindent" }, | |
{ "keys": ["ctrl+l"], "command": "indent" }, | |
{ "keys": ["ctrl+k"], "command": "swap_line_up" }, | |
{ "keys": ["ctrl+j"], "command": "swap_line_down" }, | |
{ "keys": ["command+b"], "command": "extended_switcher", "args": {"list_mode": "window"} }, | |
{ "keys": ["ctrl+command+b"], "command": "extended_switcher", "args": {"list_mode": "active_group"} }, | |
{ "keys": ["ctrl+e"], "command": "goto_definition" }, | |
{ "keys": [":", "v", "s", "p"], "command": "create_pane", "args": {"direction": "right", "give_focus": true} }, | |
{ "keys": [":", "b", "d"], "command": "destroy_pane", "args": {"direction": "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
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
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
javascript:(function(){var styles = document.querySelectorAll('link[rel=\'stylesheet\']'); for (var s = 0; s < styles.length; s++) {styles[s].mediax = styles[s].media;if (styles[s].media === 'only x') { styles[s].media = styles[s].mediax; } else if (styles[s].media !== 'print') {styles[s].media = 'only x';}}})(); |