Skip to content

Instantly share code, notes, and snippets.

View jiceb's full-sized avatar
👋

Jean-Charles Bournot jiceb

👋
View GitHub Profile
@jiceb
jiceb / easing.css
Created June 24, 2018 15:31 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
<h1>This is an H1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tu vero, inquam, ducas licet, si sequetur; Haec et tu ita posuisti, et verba vestra sunt. Atque his de rebus et splendida est eorum et illustris oratio. Eam stabilem appellas. Nam Pyrrho, Aristo, Erillus iam diu abiecti. Illa sunt similia: hebes acies est cuipiam oculorum, corpore alius senescit; Est enim effectrix multarum et magnarum voluptatum. Duo Reges: constructio interrete. </p>
<p>Fortasse id optimum, sed ubi illud: Plus semper voluptatis? Nihil enim hoc differt. Hoc enim constituto in philosophia constituta sunt omnia. Dat enim intervalla et relaxat. Aliena dixit in physicis nec ea ipsa, quae tibi probarentur; Tecum optime, deinde etiam cum mediocri amico. Ait enim se, si uratur, Quam hoc suave! dicturum. Respondent extrema primis, media utrisque, omnia omnibus. </p>
<h2>This is an H2</h2>
<p>Ita multo sanguine profuso in laetitia et in victoria est mortuus. Quae duo sunt, unum facit. Expectoque quid ad id, quod quaer
@jiceb
jiceb / rename.sh
Created October 24, 2014 15:40
os x terminal batch image file rename
# dry run
for f in *.png; do echo mv "$f" "prefix_$f"; done
# for real now
for f in *.png; do mv "$f" "prefix_$f"; done
$baseline-px: 16px;
@mixin rem($property, $px-values) {
// Convert the baseline into rems
$baseline-rem: $baseline-px / 1rem;
// Print the first line in pixel values
#{$property}: $px-values;
// If there is only one (numeric) value, return the property/value line for it.
@if type-of($px-values) == "number" {
@jiceb
jiceb / wp-config.php
Created November 20, 2013 09:48
Share users database on different WordPress installs
# http://www.remicorson.com/share-users-database-on-different-wordpress-installs/
# The two worpdress installs have to be on the same database, with different table prefix
# wp-config.php form the second website :
define('CUSTOM_USER_TABLE', 'wp_users'); // wp_ is the table prefix from the first website
define('CUSTOM_USERMETA_TABLE', 'wp_usermeta'); // wp_ is the table prefix from the first website
define('COOKIE_DOMAIN', '.yoursite.com'); //replace with the first website url
define('COOKIEPATH', '/');
@jiceb
jiceb / gist:5919256
Created July 3, 2013 15:20
Identify A Remote Host Apps and OS Using UNIX / Linux Command Line
# http://www.cyberciti.biz/faq/identify-remote-host-by-unix-linux-command/
nmap -O -v localhost
@jiceb
jiceb / tips.html.twig
Last active December 18, 2015 13:48
Twig tips
{#
title: Combines a loop with a logical if statement
url: http://symfony.com/doc/current/book/templating.html
#}
<ul>
{% for user in users if user.active %}
<li>{{ user.username }}</li>
{% else %}
<li>No users found</li>
{% endfor %}
@jiceb
jiceb / gist:5395896
Created April 16, 2013 13:30
CSS Hyphen ( IE7+, FF 6+, iOS 4.2, Safari 5.1+ & Chrome 13+ )
/* http://blog.kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/ */
.hyphen {
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
<?php
use Silex\Application;
use Demo\Entity\Post;
use Demo\Controller\PostController;
$app = new Application;
$app['route_class'] = 'CustomRoute';
$app['dispatcher']->addSubscriber(new TemplateRenderingListener($app));
@jiceb
jiceb / gist:5280253
Created March 31, 2013 10:38
Downloading an Entire Web Site with wget
# http://www.linuxjournal.com/content/downloading-entire-web-site-wget
$ wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \