Skip to content

Instantly share code, notes, and snippets.

View limamedeiros's full-sized avatar
☺️

Vanessa Medeiros limamedeiros

☺️
  • Thoughtworks
  • Brazil
View GitHub Profile
@StirlingBaker
StirlingBaker / obsidian_dataview_callouts.css
Last active November 13, 2022 03:07
Obsidian Callouts Dataview Attributes Custom CSS
.theme-dark {
--dataview-key: #ffc94a;
--dataview-value: #ffffff;
}
.theme-light {
--dataview-key: #000;
--dataview-value: #000;
}
@AFutureD
AFutureD / Hypothesis.user.js
Last active January 7, 2024 23:00
A Tempermonkey script for Hypothes.is
// ==UserScript==
// @name Hypothesis
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author AFuture
// @match *://*/*
// @grant none
// ==/UserScript==
@ScottDillman
ScottDillman / obsidian-notice.css
Last active March 30, 2021 14:54
CSS fragment to create notices and pulsating bullets from code blocks
/**
* I use .app-container to get around CSS selector specificity
*/
.app-container pre[class*="language-note-"] {
border: 2px solid;
}
/* Make the first line of note bold */
*[class*="language-note"]::first-line {
@juliengdt
juliengdt / SomePlayground.swift
Last active September 21, 2019 15:55
Strongly Type Identifiers For Class Or Struct By Using Protocol and associated types
/*
In response of Tom Lokhort's article.
A third alternative: alternative 2 under steroïds
---
Source: http://tom.lokhorst.eu/2017/07/strongly-typed-identifiers-in-swift
*/
struct GenericIdentifier<T>: RawRepresentable, Hashable, Equatable {
let rawValue: String
@shanev
shanev / CustomViewController.swift
Last active February 23, 2018 20:09
Generic view controllers with storyboards and view model injection
struct CustomViewModel {
let data: String
init(data: String) {
self.data = data
}
}
final class CustomViewController: ViewController<CustomViewModel> {
override func viewDidLoad() {

A small sketch for a composable validation library.

@zats
zats / Models.swift
Last active August 10, 2017 19:49 — forked from JaviSoto/SampleViewController.swift
Init based Storyboard View Controller Instantiation
import Foundation
// Some clearly non-NSObject-based models:
enum Coconut: String {
case small, medium, large
}
struct Tomato {
static var red = Tomato(color: #colorLiteral(red: 0.7490196078, green: 0.09803921569, blue: 0.02352941176, alpha: 1))
@JaviSoto
JaviSoto / SampleViewController.swift
Last active January 23, 2020 09:20
Init based Storyboard View Controller Instantiation
final class SampleViewController: StoryboardBackedViewController {
// Unfortunately this must be an IUO var, so that we can set the value after super.init
private var member: Foo!
// Proper dependency injection in a storyboard backed VC!
init(foo: Foo) {
super.init(storyboardIdentifier: "SampleViewControllerIdentifier")
// We have to set the members *after* calling super.init, since it changes the instance of `self`.
self.member = foo

Skin Color Detection using OpenCV

本文提供HSV與YCrCb兩種顏色空間的膚色偵測流程

膚色偵測的應用:

  • Face Detection and Tracking
  • Hand Detection and Tracking
  • Pornographic Filter
@brandondurham
brandondurham / styles.less
Last active June 24, 2024 14:48
Using Operator Mono in Atom
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):