Skip to content

Instantly share code, notes, and snippets.

View Alicannklc's full-sized avatar
😇
Focusing

Alicannklc

😇
Focusing
View GitHub Profile
@Alicannklc
Alicannklc / cloudSettings
Last active December 30, 2019 10:10 — forked from SelmanKahya/cloudSettings
VSCode settings
{"lastUpload":"2019-12-30T10:10:38.690Z","extensionVersion":"v3.4.3"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@Alicannklc
Alicannklc / wp-db.tutorial.php
Created April 4, 2019 00:06 — forked from benbalter/wp-db.tutorial.php
WordPress DB Tutorial
<?php
//absolute path to wp-load.php, or relative to this script
//e.g., ../wp-core/wp-load.php
include( 'trunk/wp-load.php' );
//grab the WPDB database object, using WP's database
//more info: http://codex.wordpress.org/Class_Reference/wpdb
global $wpdb;
@Alicannklc
Alicannklc / gulpfile.js
Created December 22, 2018 23:07 — forked from meseven/gulpfile.js
Gulp
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())

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.

Command Line Generator Info

Reference

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.

@Alicannklc
Alicannklc / responsive_wordpress.css
Created June 5, 2018 19:46 — forked from jeffsebring/responsive_wordpress.css
Responsive WordPress Core Theme Styles
/**
* Responsive WordPress Core Theme Styles
* http://jeffsebring.com/responsive-wordpress-images/
--------------------------------------------------- */
.sticky,
.bypostauthor,
.gallery-caption {
display: normal;
}
@Alicannklc
Alicannklc / functions.php
Created June 5, 2018 19:43 — forked from unfulvio/functions.php
WordPress HTML Minification Class to compress HTML (removal of whitespaces, line breaks, new lines, comments). Preserves script comments (if removed might break some javascripts like Google Analytics or Adsense) and IE specific tags.
/* Minifies HTML and removes comments (except IE tags and comments within script tags)
*
* To disable compression of code portions, use '<!--wp-html-compression no compression-->' tag
*
* @see http://forrst.com/posts/Wordpress_Minify_output_HTML-29q
* @see http://www.intert3chmedia.net/2011/12/minify-html-javascript-css-without.html
*/
class WP_HTML_Compression
{
// Settings