Skip to content

Instantly share code, notes, and snippets.

View clytras's full-sized avatar

Christos Lytras clytras

View GitHub Profile
Microsoft Windows [Version 10.0.10586] 
 
zkr32@ZKRWS C:\Users\zkr32 
> e: 
 
zkr32@ZKRWS E:\ 
> cd Programming\Android\ReactNative\ZKRTestSharedProject 

Microsoft Windows [Version 10.0.10586]
]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ C:\Users\zkr32
> ]9;12\e:
]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ E:\
> ]9;12\cd E:\Programming\Android\ReactNative\ZKRTestSharedProject
]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ E:\Programming\Android\ReactNative\ZKRTestSharedProject
> ]9;12\react-native run-android
@clytras
clytras / TransformUtil.js
Created August 23, 2018 15:51 — forked from hpstuff/TransformUtil.js
ReactNativeTransformHelper
import MatrixMath from 'react-native/Libraries/Utilities/MatrixMath';
class TransformUtil {
constructor(matrix) {
this.matrix = matrix || MatrixMath.createIdentityMatrix();
}
perpective(x) {
MatrixMath.reusePerspectiveCommand(this.matrix, x)
// PhantomJS Cheatsheet
$ brew update && brew install phantomjs // install PhantomJS with brew
phantom.exit();
var page = require('webpage').create();
page.open('http://example.com', function() {});
page.evaluate(function() { return document.title; });
@clytras
clytras / .gitignore
Created March 27, 2019 07:40 — forked from iffy/.gitignore
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot
@clytras
clytras / Enhance.js
Created April 4, 2019 14:01 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@clytras
clytras / index.html
Created December 6, 2019 12:36 — forked from StickyCube/index.html
Electron click through transparency example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test App</title>
</head>
<style>
html, body {
height: 100%;
"serve": "yarn build",
"build": "parcel index.html --out-dir dist --public-url ./",
"deploy": "git subtree push --prefix dist origin gh-pages",
@clytras
clytras / popcount.c
Created March 24, 2020 15:43 — forked from kylelk/popcount.c
sqlite extension to calculate population bit count
/* compile osx
* gcc -bundle -fPIC -O3 -o popcount.dylib popcount.c
* */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sqlite3ext.h>
SQLITE_EXTENSION_INIT1
@clytras
clytras / Commit Formatting.md
Created January 25, 2021 11:57 — forked from brianclements/Commit Formatting.md
Angular Commit Format Reference Sheet

Commit Message Guidelines

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the Angular change log.

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject: