Skip to content

Instantly share code, notes, and snippets.

View htr3n's full-sized avatar

Alex T. htr3n

View GitHub Profile
/* https://medium.com/@uiuxlab/the-most-used-responsive-breakpoints-in-2017-of-mine-9588e9bd3a8a */
/* a) The Standard Breakpoints. Working with fluid images. */
@media all and (max-width: 1690px) { }
@media all and (max-width: 1280px) { }
@media all and (max-width: 980px) { }
@media all and (max-width: 736px) { }
@media all and (max-width: 480px) { }
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
//...
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
//...
}
@htr3n
htr3n / gist-theme.css
Last active December 23, 2020 01:22
A template for Gist theme
/*
* https://github.com/StylishThemes/GitHub-Dark/issues/197#issuecomment-63095957
*/
.pl-coc /* constant.other.color */,
.pl-entl /* entity.name.tag.label */,
.pl-entm /* entity.name.type.module */,
.pl-eoa /* entity.other.attribute-name */,
.pl-mai .pl-sf /* meta.at-rule.include support.function */,
.pl-mm /* meta.module-reference */,
.pl-pdv /* punctuation.definition.variable */,
@htr3n
htr3n / gulpfile.js
Last active October 31, 2021 23:36
Gulp 4 configuration SASS, PostCSS, autoprefixer, cssnano, sourcemaps
const gulp = require('gulp');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const sourcemaps = require('gulp-sourcemaps');
const log = require('fancy-log');
const sassSourceFile = 'assets/scss/hyde-hyde.scss';
const outputFolder = 'static/css';
@htr3n
htr3n / package.json
Last active July 22, 2018 09:36
NPM scripts for running concurrently
{
"scripts": {
"scss-build": "gulp scss",
"scss-watch": "gulp watch",
"hugo-watch": "hugo server -w --buildDrafts --cleanDestinationDir",
"dev": "npm-run-all --parallel scss-watch hugo-watch"
},
"devDependencies": {
"autoprefixer": "^9.0.0",
"cssnano": "^4.0.3",
var gulp = require('gulp');
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
var cssnano = require('cssnano');
var sourcemaps = require('gulp-sourcemaps');
var sass_src_file = 'assets/scss/hyde-hyde.scss';
var output_folder = 'static/css';
var watched_resources = 'assets/scss/**/*';

M2Eclipse Issues

  • 'Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin'
<build>
  <!--
      ... various plugins ...
      -->

Find & Copy

find /path/to/find -name '*.txt' -exec cp {} /new/path \;

  Find & Handling Spaces in File Names

find . -print0 | xargs -0