This file contains hidden or 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 | |
| class Temaclass | |
| { | |
| private function actionAfterSetup($function) | |
| { | |
| add_action('after_setup_theme', function() use ($function) { | |
| $function(); | |
| }); | |
| } | |
| private function actionEnqueueScripts($function) |
This file contains hidden or 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: { | |
| MaterialTheme: { | |
| theme: 'Palenight', | |
| backgroundOpacity: '1', | |
| accentColor: '#64FFDA', |
This file contains hidden or 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
| npm install --global --production windows-build-tools | |
| https://www.microsoft.com/en-us/download/details.aspx?id=44266 | |
| https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe |
This file contains hidden or 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
| const gulp = require('gulp'); | |
| const minify = require('gulp-minify'); | |
| const minifyCSS = require('gulp-minify-css'); | |
| const rename = require('gulp-rename'); | |
| const concat = require('gulp-concat'); | |
| gulp.task('styles', () => { | |
| gulp.src('source/css/**/*.css') | |
| .pipe(minifyCSS()) |
This file contains hidden or 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
| #include <stdio.h> | |
| // function main begins program execution | |
| int main( void ) | |
| { | |
| printf( "Welcome to C!\n" ); | |
| } / |
This file contains hidden or 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
| /* reset */ | |
| * { | |
| -moz-box-sizing: border-box; | |
| -webkit-box-sizing: border-box; | |
| box-sizing: border-box; | |
| &:before, &:after { | |
| -moz-box-sizing: border-box; | |
| -webkit-box-sizing: border-box; | |
| box-sizing: border-box; |
Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.
You can get all of this information on the command line.
rails generate with no generator name will output a list of all available generators and some information about global options.
rails generate GENERATOR --help will list the options that can be passed to the specified generator.
This is a list of useful WordPress functions that I often reference to enhance or clean up my sites. Please be careful and make backups.
This file contains hidden or 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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * Ignited Datatables | |
| * | |
| * This is a wrapper class/library based on the native Datatables server-side implementation by Allan Jardine | |
| * found at http://datatables.net/examples/data_sources/server_side.html for CodeIgniter | |
| * | |
| * @package CodeIgniter | |
| * @subpackage libraries |