Skip to content

Instantly share code, notes, and snippets.

Alain Pellaux gallib

Block or report user

Report or block gallib

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gallib
gallib / preferences.json
Created Dec 9, 2018
Sublime Text preferences
View preferences.json
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "blink",
"color_scheme": "Packages/Materialize/schemes/Material Monokai.tmTheme",
"default_line_ending": "unix",
"fade_fold_buttons": false,
@gallib
gallib / gist.php
Last active Dec 16, 2015
A placer dans functions.php. Utilisation: [gist id="xxx"]
View gist.php
function embed_gist( $atts ) {
// Attributes
extract( shortcode_atts(
array(
'id' => '',
), $atts )
);
// Code
return '<script src="https://gist.github.com/' . $atts['id'] . '.js"></script>';
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(1000);
You can’t perform that action at this time.