Skip to content

Instantly share code, notes, and snippets.

View jordansinger's full-sized avatar

Jordan Singer jordansinger

View GitHub Profile
* {
margin: 0;
padding: 0;
}
#reid p {
font-size: 64px;
color:white;
display:table-cell;
vertical-align:middle;
width:100%;
@bendc
bendc / fib.js
Created December 15, 2015 17:15
Fibonacci Series
const fib = (n, seq = [0, 1]) =>
n - 2 ? fib(n - 1, [...seq, seq.slice(-2).reduce((a, b) => a + b)]) : seq;
fib(10); // 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
@jtallant
jtallant / setting-up-sinatra-with-active-record.md
Last active March 25, 2024 13:26
Setting up Sinatra with Active Record

Setting up Sinatra Project

create an empty project and add a Gemfile

cd ~/Desktop
mkdir project-name
cd project-name
touch Gemfile
@insidegui
insidegui / gist:a18124c0c573a4eb656f5c485ea7dae4
Last active February 9, 2025 18:03
Unofficial documentation for the iCloud Apple device image URL format
https://statici.icloud.com/fmipmobile/deviceImages-9.0/iPhone/iPhone9,4-2-3-0/online-infobox__3x.png
A B C D E F G
A: deviceImages version seems to determine the format of the image specifier (C, D, E, F)
B: device marketing name
C: device model identifier
D: color cover glass (front color)
1 - Black
2 - White
E: device enclosure color (back color)
@rsms
rsms / figma-project-stats.js
Created June 21, 2018 19:17
Script that generates statistics for a Figma project, like number of files, frames, versions etc
//
// Figma project stats
// Pulls statistics like number of files, frames, versions etc for a project.
//
// Usage:
// export FIGMA_API_ACCESS_TOKEN='your-token'
// node figma-project-stats.js <project-id>
//
// You can generate tokens in your account settings or at
// https://www.figma.com/developers/explorer#personal-access-token
@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
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
/*Terminal*/
VStack {
@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 {
@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,
import SwiftUI
import PlaygroundSupport
struct whatsNewRow: View {
var icon: String
var title: String
var description: String
var body: some View {
HStack (spacing: 24) {