This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 = '' ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function EventSystem() { | |
this.eventListeners = {}; | |
} | |
EventSystem.prototype.on = function(eventType, eventHandler) { | |
if(typeof this.eventListeners[eventType] === "undefined") { | |
this.eventListeners[eventType] = []; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ***** | |
// setupProxy.js | |
const { createProxyMiddleware } = require('http-proxy-middleware'); | |
module.exports = function(app) { | |
app.use('/api', createProxyMiddleware({ | |
target : 'http://localhost:3000', | |
changeOrigin : true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |