Skip to content

Instantly share code, notes, and snippets.


Nacho Toledo iign

View GitHub Profile
View category.css
/* Functions */
.category-header-wrap {
background-color: transparent;
.category-header {
border-bottom: 1px solid #6a6a6a;
.category-header-title {
View page.example.php
$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
Timber::render( array( 'page.example.twig', 'page.twig' ), $context );
View array_chunk-example.php
<?php foreach (array_chunk($photoList, 2) as $photos): ?>
<div class="grid-row">
<?php foreach ($photos as $key => $photo): ?>
<div class="grid-overlay__img-container">
<div class="grid-overlay__img" data-src="<?= $photo['url_full'] ?>"></div>
<?php endforeach; ?>
<?php endforeach; ?>
View twig-batch.html.twig
{% set items = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] %}
{% for row in items|batch(3, 'No item') %}
<div class="row">
{% for column in row %}
<div class="element col-xs-4">
{{ column }}
{% endfor %}
View BS-example.html
<div class="row">
<div class="element col-xs-4">
<div class="element col-xs-4">
<div class="element col-xs-4">
View mysql-error.log
2017-05-18 15:38:26 3914 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace minimac/accounts uses space ID: 1 at filepath: ./minimac/accounts.ibd. Cannot open tablespace mysql/innodb_table_stats which uses space ID: 1 at filepath: ./mysql/innodb_table_stats.ibd
2017-05-18 15:38:26 7fffa23f23c0 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
InnoDB: Error: could not open single-table tablespace file ./mysql/innodb_table_stats.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot

Keybase proof

I hereby claim:

  • I am iign on github.
  • I am iign ( on keybase.
  • I have a public key whose fingerprint is 6543 A5B1 30BC B4DA E694 23C1 840B CFB6 8C7E 9D51

To claim this, I am signing this object:

View AEIconizer.cocoascript
// Sketch Plugin: AEIconizer (ctrl shift i)
// Source:
var iTunesSizes = [NSArray arrayWithObjects: 512, nil]
var iOSSizes = [NSArray arrayWithObjects: 83.5, 76, 60, 40, 29, 20, nil]
var watchOSSizes = [NSArray arrayWithObjects: 98, 86, 27.5, 24, nil]
var otherSizes = [NSArray arrayWithObjects: 72, 57, 50, nil]
var iconSizes = [NSArray arrayWithObjects: iTunesSizes, iOSSizes, watchOSSizes, otherSizes, nil]
function onRun(context) {
iign / gulpfile.js
Last active Nov 14, 2016
Basic Gulpfile
View gulpfile.js
var gulp = require('gulp')
var sass = require('gulp-sass')
var autoprefixer = require('gulp-autoprefixer')
var browserSync = require('browser-sync').create()
gulp.task('sass', function () {
.pipe(sass({outputStyle: 'uncompressed'}).on('error', sass.logError))
.pipe(autoprefixer('last 3 versions', '> 1%', 'ie 8'))
iign / index.php
Created Jun 4, 2015
Silex index.php file
View index.php
require_once __DIR__ . '/vendor/autoload.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = new Silex\Application();
// $app['debug'] = true;
$app->register(new Silex\Provider\UrlGeneratorServiceProvider());