Skip to content

Instantly share code, notes, and snippets.

View apolkingg8's full-sized avatar
🍊
ORANGGGGGEEEEE!!!

Eddie Hsu apolkingg8

🍊
ORANGGGGGEEEEE!!!
View GitHub Profile
@sjenning
sjenning / main.go
Created July 15, 2017 01:33
UWP Asset Generator
package main
import (
"fmt"
"gopkg.in/gographics/imagick.v2/imagick"
)
type asset struct {
size float32
@ryanorz
ryanorz / picture_hash.cpp
Created February 21, 2017 09:06
Picture similarity judgement
/**
* 图像匹配 - 在另一附图中找到匹配部分(小图是大图中的一部分)
* 1. 归一化互相关算法 - 简单, 但是需要尺寸不变, 应用较少
* 2. SIFT(Scale-invariant feature transform, 尺度不变特征转换) - 对形变支持好
*
* 图像相似度识别 - 给出两幅图的相似程度
* 1. 颜色直方图计算方法
* 缺点: 按照颜色的全局分布来看的,无法描述颜色的局部分布和色彩所处的位置。
* 2. 图像指纹与汉明距离 (图像相似度比较的核心思想)
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
@mqli
mqli / Few Line of Hack Code Make React-Native Run on Windows.md
Last active July 13, 2017 19:14
Few Line of Hack Code Make React-Native Run on Windows

#Few Line of Hack Code Make React-Native Run on Windows

While React-Native just add support of Android,yet officeally they just only support on OSX.

After a few hours of debugging, I find a simple way of let React-Native run on Windows.

Make sure all requirements were all setup following this:

Then initilize the project following this:

@bparadie
bparadie / react-native.d.ts
Last active January 5, 2017 09:11
Incomplete react-native.d.ts, requires react.d.ts from DefinitelyTyped
declare module "react-native" {
import * as React from 'react';
import {ComponentClass, ReactType, ReactNode, ReactElement} from 'react';
export * from 'react';
/**
* Represents the completion of an asynchronous operation
* @see lib.es6.d.ts
@coodoo
coodoo / gist:59891964b06a603e2dc8
Created September 3, 2015 00:16
react isomorphic 原理
- 我想要挑戰isomorphic,但目前好像比較少redux配isomorphic又配上webpack的方案
- 這個範例可看,最近全部改寫過
- https://github.com/coodoo/react-redux-isomorphic-example
- 注意下面幾點
- js/bootClient.js 與 js/bootServer.js
- bootServer.js 負責做 server-render
@quellish
quellish / FBClasses.txt
Created August 15, 2015 01:50
Facebook iOS App Class List
headers:
_ASAsyncTransaction.h
_ASAsyncTransactionGroup.h
_ASDisabledPanUITextView.h
_ASDisplayLayer.h
_ASDisplayLayerDelegate-Protocol.h
_ASDisplayView.h
_ASImageNodeDrawParameters.h
_ASPendingState.h
_ASTextNodeCachedMetrics.h
@conancat
conancat / attictv.jobs.zh.md
Last active March 29, 2017 12:58
AtticTV 正在募集Web前端、後端兼職開發人員,以及UI與廣告設計人員。你可以隨時隨地、自由自在地工作。詳細資料如下!

誠徵:前端、後端開發人員,以及UI與廣告設計人員

SPOT News

職位:兼職/自由接案人員

  • 職務:前端、後端開發人員,以及UI與廣告設計人員
  • 若合作愉快,有機會轉正職!

責任:協助我們打造東南亞及亞太地區最棒的新聞應用程式!

@brentvatne
brentvatne / gist:e1ca1e4beaf0135e3178
Last active September 11, 2015 03:46
Issue Triage

Goals

  • Close any issues that can be closed
  • Solve any issues that can be solved
  • Assign any outstanding issues to the correct members on the React Native team, and give them enough information to be able to act on them
  • Push pull requests through
  • Improve the signal:noise ratio
  • Be nice & welcoming, and appreciative to everyone's efforts to contribute

Process

@jonathantneal
jonathantneal / README.md
Last active November 9, 2023 21:10
createElement.js // a 300 byte DOM Element creator

createElement.js

createElement.js lets document.createElement use CSS selectors.

This is a pretty useful library for building out DOM elements. The whole thing runs on one regex and a for loop, so it’s plenty fast. The script is 300 bytes when compressed and gzipped. For 524 bytes (advanced), it includes nesting support and can generate entire DOM hierarchies, including text nodes.

Usage

document.createElement(); // generates <div />