Skip to content

Instantly share code, notes, and snippets.

View valerysntx's full-sized avatar
🔋
99%

valery sntx valerysntx

🔋
99%
  • Ukraine, Uzhgorod
View GitHub Profile
@cmod
cmod / hugofastsearch.md
Last active March 22, 2024 07:02 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to craigmod.com and press CMD-/ and start typing.

Fast Search

@kurnianggoro
kurnianggoro / GSOC2017_OpenCV_FacemarkAPI.md
Last active December 16, 2022 03:46
GSOC 2017 - Facemark API for OpenCV

[Facemark API for OpenCV][pull_request]

Student: Laksono kurnianggoro
Mentor: Delia Passalacqua
Link to commits: https://github.com/opencv/opencv_contrib/pull/1257/commits
Link to codes: https://github.com/opencv/opencv_contrib/pull/1257/files

Introduction

Facial landmark detection is a useful algorithm with many possible applications including expression transfer, virtual make-up, facial puppetry, faces swap, and many mores. This project aims to implement a scalable API for facial landmark detector. Furthermore, it will also implement 2 kinds of algorithms, including active appearance model (AAM) [1] and regressed local binary features (LBF) [2].

.
├── matree
├── swift
│   ├── 00503_0_254.242_2013mar02
│   ├── 00546_0_ensbdasa-09aug2013
│   ├── 00553_0_ensbdpix3-09aug2013
│   ├── 00554_0_ensbdpix4-09aug2013
│   ├── 00555_0_ensbdrtr1-2013aug09
│   ├── 00557_0_ENSBDVPN1-02AUG2013
│   ├── 00558_0_ENSBDVPN2-02AUG2013
@poizan42
poizan42 / Makefile
Last active January 4, 2020 23:26
Demonstration of running 32-bit code on WSL
call32test: call32test.o call32.o
gcc -g $^ -o $@
call32test.o: call32test.c
gcc -g -c $< -o $@
call32.o: call32.asm
nasm -f elf64 call32.asm -o call32.o
@valerysntx
valerysntx / ActivatorEx.cs
Created December 17, 2015 08:53
Object Activator / Build Instance Factory Delegate
using System;
using System.Reflection;
using System.Linq.Expressions;
using System.Collections;
using System.Linq;
public class Program
{
public static void Main()
{
@valerysntx
valerysntx / viewmodelbase.js
Last active September 15, 2015 02:23
ViewModelBase observable properties wrapper class
(function(ko){
ko.ViewModel = function ViewModel(){
Object.getOwnPropertyNames(this)
.map(name => ({
name,
desc: Object.getOwnPropertyDescriptor(this, name)
}))
.filter(o => o.desc.configurable)
.forEach(o => {
@valerysntx
valerysntx / knockoutifyUnderscore.js
Last active August 29, 2015 14:10 — forked from togakangaroo/knockoutifyUnderscore
Underscore functions transparently unwrap knockout observables
//make a limited set of underscore functions transparently unwrap knockout observables
(function knockoutifyUnderscore(_) {
var unwrap = ko.utils.unwrapObservable;
//These can be shimed in a standard way
var koFriendly = ['map', 'filter', 'find', 'each', 'findBy', 'first', 'last', 'head', 'tail', 'union', 'compact', 'flatten', 'difference', 'without'];
var oldMap = _.map;
for (var _i = 0; _i < koFriendly.length; _i++) {
(function(fnName) {
var originalFn = _[fnName];
@zulfajuniadi
zulfajuniadi / app.js
Created October 15, 2014 14:17
Backbone VirtualDOM using fiduswriter/diffDOM
/*
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VirtualDOM Example</title>
</head>
<body>
<div id="output"></div>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.js"></script>
<script>
(function Templify(undefined) {
var models = {};
function replace(template, pattern, value){
var expression = new RegExp('\\['+pattern+'\\]');