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
# .idx/dev.nix | |
{ pkgs, ... }: { | |
# Which nixpkgs channel to use. | |
channel = "stable-23.11"; # or "unstable" | |
# Use https://search.nixos.org/packages to find packages | |
packages = [ | |
pkgs.nodejs_18 | |
# Packages for postgres. | |
# There may be an alternative approach using docker |
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
/* | |
* Copyright 2014 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
<manifest ...> | |
... | |
<!-- Make sure your app (or individual activity) uses the | |
theme with the custom attribute defined. --> | |
<application android:theme="@style/AppTheme" ...> | |
... | |
</application> | |
</manifest> |
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
import React, {useRef, useLayoutEffect} from 'react'; | |
const [DURMIN, DURMAX] = [0.1, .8]; | |
const dur = f => Math.min(DURMAX, (1 - f) * DURMIN + f * DURMAX); | |
export function Expando({className, children, open}) { | |
open = !!open; | |
let node = useRef(); | |
let lastOpen = useRef(open); | |
let duration = useRef(.5); |
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
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
# Add this to your .git/config file | |
[diff] | |
tool = SketchKaleidoscope | |
[difftool "SketchKaleidoscope"] | |
cmd = ./util-sketch-kaleidoscope-diff.bash \"$MERGED\" \"$LOCAL\" \"$REMOTE\" |
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
# | |
# | |
# | |
# MOVED TO http://code.google.com/p/romannurik-code/source/browse/misc/bash_completion/adb | |
# | |
# | |
# | |
function _adb() |
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
const TAG_NAME = 'blockcall'; | |
const ARG_TAG_NAME = 'argblock'; | |
class BlockCallExtension { | |
constructor(nunjucks) { | |
this.tags = [TAG_NAME]; | |
this.nunjucks = nunjucks; | |
} |
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
// Makes a copy of all selected components (how is this not built into Figma?) | |
let newSelection = []; | |
for (let component of figma.currentPage.selection.filter(node => node.type == 'COMPONENT')) { | |
let clone = component.clone() | |
clone.x += clone.width; | |
newSelection.push(clone); | |
} | |
figma.currentPage.selection = newSelection; |
NewerOlder