Skip to content

Instantly share code, notes, and snippets.

View nWidart's full-sized avatar
💭
Available For Hire

Nicolas Widart nWidart

💭
Available For Hire
View GitHub Profile
@nWidart
nWidart / gist:2027295
Created March 13, 2012 06:43 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@nWidart
nWidart / dabblet.html
Created March 13, 2012 20:40 — forked from chriscoyier/dabblet.css
Untitled
<div class="triangle"></div>
<div class="triangle smooth"></div>
/* Localized versions of Info.plist keys French */
"Credits" = "Crédits";
"Here are some great libraries I used to create this application:" = "Here are some great libraries I used to create this application:";
"About" = "À propos";
"Thank You" = "Remerciements";
"Thank you to the amazing team at GitHub for creating a great product, without their hard work, none of this would have been possible." = "Merci à l'équipe extraordinaire à GitHub pour créer un excellent produit, sans leur travail acharné, rien de tout cela n'aurait été possible.";
"About the Developer" = "À propos du Développeur";
"Icon Design" = "Icon Design";
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
exit('Only to be used as an helper for your IDE');
class App extends Illuminate\Support\Facades\App{
@nWidart
nWidart / docker-cleanup-resources.md
Created February 9, 2018 08:36 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@nWidart
nWidart / gist:32332c2c2330feff5f029cc7ff3e4fb5
Created June 30, 2020 09:34 — forked from justarandomgeek/gist:2c47b4aaee12f717227f867a4c030fae
Factorio Command: Remove all trees in 5000 tile radius
/c
pos = game.player.position
area = {{pos.x - 5000, pos.y - 5000}, {pos.x + 5000, pos.y + 5000}}
for _, entity in pairs(game.player.surface.find_entities_filtered{area = area, type = "tree"}) do
entity.die()
end