Skip to content

Instantly share code, notes, and snippets.

View mschinis's full-sized avatar

Michael Schinis mschinis

View GitHub Profile
@mschinis
mschinis / AnimationStagger.tsx
Last active April 11, 2024 14:45
React Animation Components
'use client';
import {motion} from "framer-motion";
import {createContext} from "react";
export const AnimationStaggerContext = createContext(false)
const VIEWPORT_DEFAULTS = { once: true, margin: '0px 0px -200px' }
export function AnimationStagger({viewport = VIEWPORT_DEFAULTS, faster = false, transition = {}, ...props}: React.ComponentPropsWithoutRef<typeof motion.div> & { faster?: boolean }) {
@mschinis
mschinis / .env.local
Created March 29, 2024 22:41
Outstatic blog post not found
# ENV IS THE SAME ON VERCEL, WITH DIFFERENT OST_GITHUB_ID AND OST_GITHUB_SECRET TO POINT TO THE CORRECT OAUTH APPLICATION
OST_GITHUB_ID=...
OST_GITHUB_SECRET=...
OST_REPO_OWNER=repo-org
OST_REPO_SLUG=repo
OST_CONTENT_PATH=src/content
# OPTIONAL
# If empty this will default to main
OST_REPO_BRANCH=main
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
version: "3"
services:
# Organizr - Web UI
organizr:
image: organizr/organizr
container_name: organizr
environment:
- fpm=true #true or false | using true will provide better performance
- branch=v2-master #v2-master or #v2-develop
@mschinis
mschinis / SearchableView.swift
Created August 5, 2022 21:20
An attempt to get the animation of the .searchable viewModifier working correctly
//
// ListExampleView.swift
// searchable-test
//
// Created by Michael Schinis on 05/08/2022.
//
import UIKit
import SwiftUI
//
// SearchTestView.swift
// Trouva
//
// Created by Michael Schinis on 05/08/2022.
//
import SwiftUI
struct SearchTestView: View {
//
// ShopLiveService.swift
// Trouva
//
// Created by Michael Schinis on 12/07/2022.
//
import Foundation
import Resolver
import ShopLiveSDK
@mschinis
mschinis / Frame.swift
Created December 22, 2020 20:58
Trouva Frames
//
// Frame.swift
// frames
//
// Created by Michael Schinis on 22/12/2020.
//
import Foundation
struct FramesResponse: Codable {
@mschinis
mschinis / MSegmentControl.swift
Last active March 13, 2020 15:38
A customisable, auto-resizing Segment Control
class MSegmentControl<Item: MSegmentControlItem>: UIControl {
private var items = [Item]()
private var selectedSegmentIndex: Int = -1
weak var delegate: MSegmentControlDelegate?
var theme: MSegmentTheme = MSegmentDefaultTheme() {
didSet {
setupTheme()
}
}
@mschinis
mschinis / controllers.application.js
Last active June 28, 2019 10:54
Get params in beforeModel
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});