Skip to content

Instantly share code, notes, and snippets.

@mihail-petrov
mihail-petrov / hyper.js
Last active October 28, 2022 18:22 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 24,
// font family with optional fallbacks
fontFamily:
'Fira Code, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
// *****
// setupProxy.js
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app) {
app.use('/api', createProxyMiddleware({
target : 'http://localhost:3000',
changeOrigin : true,
html, body, div, span, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, tbody, tfoot, thead, tr, th, td,
article, aside, figure, figcaption, footer, header
menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
function EventSystem() {
this.eventListeners = {};
}
EventSystem.prototype.on = function(eventType, eventHandler) {
if(typeof this.eventListeners[eventType] === "undefined") {
this.eventListeners[eventType] = [];
}
1.! http://pear.php.net/go-pear.phar
2.! as an Administrator : php.exe -d phar.require_hash=0 go-pear.phar
3.! Enter - Enter - Enter Have fun :)
<?php
// returns boolean
function is_custom_post_type( $type = '' ) {
// access to currently queried post
global $post;
// get the current post type
$post_type = get_post_type( $post );
<?php
/*
* Usage for a custom post type named 'movies':
* unregister_post_type( 'movies' );
*
* Usage for the built in 'post' post type:
* unregister_post_type( 'post', 'edit.php' );
*/
function unregister_post_type( $post_type, $slug = '' ){