Skip to content

Instantly share code, notes, and snippets.

View TomiToivio's full-sized avatar
👽
ψ/acc

Tomi Toivio (ψ/acc) TomiToivio

👽
ψ/acc
View GitHub Profile
@mlocati
mlocati / exceptions-tree.php
Created March 9, 2017 10:58
Throwable and Exceptions tree
<?php
if (!function_exists('interface_exists')) {
die('PHP version too old');
}
$throwables = listThrowableClasses();
$throwablesPerParent = splitInParents($throwables);
printTree($throwablesPerParent);
if (count($throwablesPerParent) !== 0) {
die('ERROR!!!');
@Yousha
Yousha / .gitignore
Last active May 24, 2026 19:39
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@TomiToivio
TomiToivio / tulostinkartta.php
Last active May 23, 2016 15:36
Tulostinkartta
<?php
/*
Plugin Name: 3D-Tarvike Tulostinkartta
Plugin URI: http://tulostimet.3d-tarvike.fi/
Description: 3D-Tarvike Tulostinkartta
Version: 1.0
Author: Tomi Toivio
Author URI: http://sange.fi/
License: GPL2
*/
anonymous
anonymous / testi.stl
Created March 11, 2016 17:59
STL Gist
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RyanAtViceSoftware
RyanAtViceSoftware / fiddle.html
Last active July 18, 2019 18:48
Hello React - component lifecycle - updating events. JsFiddle: http://jsfiddle.net/gh/gist/library/pure/c709657dc3584cb5962b
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="view"/>
@RyanAtViceSoftware
RyanAtViceSoftware / fiddle.html
Last active July 18, 2019 18:38
Hello React - composite components - accessing childern. JsFiddle: http://jsfiddle.net/gh/gist/library/pure/1345be9f31298888d99a
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="view"/>
@RyanAtViceSoftware
RyanAtViceSoftware / fiddle.html
Last active July 18, 2019 18:09
Hello React - composite components - composing components with behavior - working solution. JsFiddle: http://jsfiddle.net/gh/gist/library/pure/8312dcf44f5d583b3425
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="view"/>
@RyanAtViceSoftware
RyanAtViceSoftware / fiddle.html
Last active July 18, 2019 17:54
Hello React - composite components - how to componse simple components. JsFiddle: http://jsfiddle.net/gh/gist/library/pure/27ec782a76990860929b/
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="view"/>
@RyanAtViceSoftware
RyanAtViceSoftware / hello-react-jsx.html
Last active July 18, 2019 16:16
Hello React JSX - Hello World with ReactJs 1.3 and JSX
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Hello React</title>
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.13.1.js"></script>
</head>
<body>
@RyanAtViceSoftware
RyanAtViceSoftware / hello-react.html
Last active July 18, 2019 16:12
Hello React - Hello World in ReactJs 1.3 without using JSX
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Hello React</title>
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
</head>
<body>