This file contains hidden or 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
// | |
// HashableBisector.swift | |
// TestHashableBisector | |
// | |
// Created by Johann Garces on 4/21/22. | |
// | |
import Foundation | |
enum BisectorState : Equatable { |
This file contains hidden or 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
// | |
// PasswordRequirementsView.swift | |
// SwiftUiPlayground | |
// | |
// Created by Johann Garces on 10/30/21. | |
// | |
/* | |
* Made this view in UIKit before and remade in SwiftUI. | |
* Lets you create a set of parameters to show to the user to visually identify |
This file contains hidden or 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
/* | |
FirtDraggableLabel, October 2021 | |
Quick test on adding subview to the window. | |
We are making a label that when tapped creates a second dragging label. | |
The dragging label is moveable around the screen. | |
Then when you release the dragging view is removed and the label is updated. | |
This project is also me remembering how UIKit UIWindows work. | |
As well as adding subviews directly to UIWindows. | |
This file contains hidden or 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
objective-c selectors: | |
SEL | |
The alternative to blocks. | |
This is how delegate/protocol patterns work. (another talk) | |
Most common API is for UIButtons / UIControls | |
[button addTarget:self action:@selector(aMethod:) forControlEvents:UIControlEventTouchDown]; | |
-(void)aMethod:(UIButton*)sender | |
Calls the selector on the target. |
This file contains hidden or 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 <QCoreApplication> | |
#include <QMap> | |
#include <QMapIterator> | |
#include <QDebug> | |
using StringIntMap = QMap<const char*, int>; | |
void addToMap(StringIntMap &map, const char* key, int value) | |
{ | |
map[key] = value; |
This file contains hidden or 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 <QCoreApplication> | |
#include <QMap> | |
#include <QMapIterator> | |
#include <QDebug> | |
using StringIntMap = QMap<const char*, int>; | |
void addToMap(StringIntMap &map, const char* key, int value) | |
{ | |
map[key] = value; |
This file contains hidden or 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 <QCoreApplication> | |
#include <QMap> | |
#include <QMapIterator> | |
#include <QDebug> | |
using StringIntMap = QMap<const char*, int>; | |
void addToMap(StringIntMap &map, const char* key, int value) | |
{ | |
map[key] = value; |
This file contains hidden or 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 <QCoreApplication> | |
#include <QDebug> | |
#include <QMap> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
This file contains hidden or 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 <QCoreApplication> | |
#include <QUrl> | |
#include <QDebug> | |
#include <QUrlQuery> | |
#include <QPair> | |
#include <QString> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
This file contains hidden or 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
from moviepy.editor import VideoFileClip | |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip | |
import os.path | |
import sys | |
import time | |
import math | |
import ffmpy | |
''' |
NewerOlder