WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
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
// | |
// NSApp+AppIconOverlay.swift | |
// | |
// Created by Daniel on 12/01/2023. | |
// | |
import AppKit | |
extension NSApplication { | |
/// Checks if the app is launched from Xcode with attached debugger. |
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
// | |
// Logger.swift | |
// | |
// Created by Daniel Owsiański on 10/07/2022. | |
// | |
import Foundation | |
import os.log | |
/// |
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 Cocoa | |
import MetalKit | |
// Self-contained MetalViewController based on https://metalbyexample.com/modern-metal-1/ | |
class MetalViewController: NSViewController { | |
var mtkView: MTKView! | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! |
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
#include <raylib.h> | |
int main(void) { | |
const int screenWidth = 800; | |
const int screenHeight = 450; | |
SetConfigFlags(FLAG_VSYNC_HINT); | |
SetConfigFlags(FLAG_WINDOW_RESIZABLE); | |
SetConfigFlags(FLAG_WINDOW_HIGHDPI); |
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 the page: | |
<divid="breakpoint-debug"><spanclass="xs">xs</span><spanclass="sm">sm</span><spanclass="md">md</span><spanclass="lg">lg</span><spanclass="xl">xl</span><spanclass="xxl">xxl</span></div> | |
Sizes: https://getbootstrap.com/docs/5.0/layout/breakpoints/ | |
*/ | |
#breakpoint-debug { | |
// display:none; | |
position: absolute; | |
width: 100vw; |
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
#!/bin/sh | |
# Fix on Xcode problem with git-lfs | |
# Simply skip the git-lfs check if there is GIT_EXEC_PATH /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core | |
if [ -z "$GIT_EXEC_PATH" ] | |
then | |
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; } | |
git lfs post-checkout "$@" | |
else |
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
#!/usr/bin/env bash | |
# set -x | |
convert(){ | |
avconvert --source $1 --output ${1/\.mp4/-$2.m4v} --preset $2 | |
} | |
presets=( | |
"Preset640x480" | |
"Preset960x540" |
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
license: gpl-3.0 | |
height: 960 | |
border: no |
Simple directed layout to pack different-sized circles as close as possible
NewerOlder