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
/* | |
# To do: | |
* Chat windows | |
* Settings page | |
* ... probably a lot more | |
# Note: | |
After saving the custom CSS in BGA, the format of this code will be altered | |
and these comments will be removed. This is expected. | |
Also, some games define their own colors which will cause some contrast issues. | |
*/ |
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
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide] | |
"PreferExternalManifest"=dword:00000001 |
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 | |
/** | |
* CPT: Custom columns for post_slug | |
* replace all occurances of "post_slug" with your post type's slug and "theme_domain" with your theme's domain | |
*/ | |
function set_custom_edit_post_slug_columns( $columns ) { | |
// unset( $columns['date'] ); // disable existing column | |
$columns['image'] = __( 'Image', 'theme_domain' ); | |
$columns['date'] = __( 'Custom Date', 'theme_domain' ); |
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
/** | |
* Saves post type and taxonomy data to JSON files in the theme directory. | |
* @param array $data Array of post type data that was just saved. | |
* Code originally provided by the author of the plugin | |
*/ | |
function cptui_local_json( $data = array() ) { | |
$theme_dir = get_stylesheet_directory(); | |
// Create our directory if it doesn't exist | |
if ( ! is_dir( $theme_dir .= '/cptui-json' ) ) { | |
mkdir( $theme_dir ); |
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 | |
/** | |
* Setup development environment by manipulating plugin activation | |
* Replace the dev URLs and plugin paths accordingly | |
*/ | |
function mysite_development_environment_setup() { | |
// define the development sites | |
$dev_envs = array( | |
'http://localhost:8888', |
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
javascript:$('.content-scope-line:contains("Classifieds")').parents('.post-container').hide();$('.classifieds-single-item-content').hide();$('.content-scope-line:contains("Free items")').parents('.post-container').hide();$('.content-scope-line:contains("Recommendations")').parents('.post-container').hide();$('.content-scope-line:contains("Lost & Found")').parents('.post-container').hide();$('.post-byline:contains("Sponsored")').parents('.post-container').hide(); |
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 to create an optimized svg url | |
// http://codepen.io/jakob-e/pen/doMoML | |
@function svg-url($svg) { | |
// Chunk up string in order to avoid "stack level too deep" error | |
$encoded: ''; | |
$slice: 2000; | |
$index: 0; | |
$loops: ceil(str-length($svg)/$slice); | |
@for $i from 1 through $loops { | |
$chunk: str-slice($svg, $index, $index + $slice - 1); |
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
// generate an em value | |
@function em($target_px, $context_px: 16) { | |
@return $target_px / $context_px * 1em; | |
} |
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
// fluidly resize type | |
// based on example here https://css-tricks.com/snippets/css/fluid-typography/ | |
@mixin fluid-type($font-min, $font-max, $screen-min, $screen-max) { | |
font-size: #{$font-min}px; | |
@media only screen and (min-width: #{$screen-min}px) { | |
font-size: calc( | |
#{$font-min}px + #{($font-max - $font-min)} * (100vw - #{$screen-min}px) / (#{$screen-max} - #{$screen-min}) | |
); | |
} |