Skip to content

Instantly share code, notes, and snippets.

View jordansinger's full-sized avatar

Jordan Singer jordansinger

View GitHub Profile
@jamesvclements
jamesvclements / Get _ Aspect Ratio.json
Created January 26, 2022 14:42
Get the aspect ratio of the current selection with automator.design
{
"id": "kyusryaodtnxwdjz49",
"name": "Get / Aspect Ratio",
"description": "",
"color": "blue",
"actions": [
{
"id": "kyussccta00o7d20od9",
"command": {
"name": "getCurrentSelection",
@m1guelpf
m1guelpf / PRMTVS.sol
Last active January 3, 2022 20:03
A lil identity namespace contract in response to jsngr's tweet: https://twitter.com/jsngr/status/1478090387101302789
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
contract PRMTVS {
struct Identity {
string name;
string bio;
string email;
string website;
}
class ViewController: UIViewController,URLSessionDownloadDelegate {
@IBOutlet weak var scnView: SCNView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
downloadSceneTask()
}
@sonnylazuardi
sonnylazuardi / code.ts
Created June 11, 2021 04:27
Resizable Figma Plugin Window
figma.showUI(__html__,{width: 250, height: 250});
// restore previous size
figma.clientStorage.getAsync('size').then(size => {
if(size) figma.ui.resize(size.w,size.h);
}).catch(err=>{});
figma.ui.onmessage = msg => {
switch (msg.type) {
case "resize":
figma.ui.resize(msg.size.w,msg.size.h);
figma.clientStorage.setAsync('size', msg.size).catch(err=>{});// save size
import SwiftUI
import PlaygroundSupport
struct whatsNewRow: View {
var icon: String
var title: String
var description: String
var body: some View {
HStack (spacing: 24) {
@gtzsb
gtzsb / RotatingGradient.swift
Created July 16, 2020 16:13
SwiftUI Rotating Gradient
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
@State var gradientAngle: Double = 0
let colors: [Color] = [
.pink,
.red,
.orange,
@navsing
navsing / iPhone12ProWebsite.swift
Created July 15, 2020 19:05
iPhone 12 Pro Buying Experience
//
// Apple.swift
// Playground
//
// Created by Navdeep Singh on 7/14/20.
//
import SwiftUI
struct Apple: View {
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
/*Terminal*/
VStack {
@stammy
stammy / TipsView.swift
Created July 4, 2020 17:24
SwiftUI MicroAnimation example
//
// TipsView.swift
// Stonks
//
// Created by Paul Stamatiou on 7/3/20.
//
import SwiftUI
import PlaygroundSupport