Skip to content

Instantly share code, notes, and snippets.

View florentsorel's full-sized avatar

Florent Sorel florentsorel

  • Rouen, France
View GitHub Profile
package main
import (
"fmt"
"log/slog"
"net/http"
"os"
)
type Api struct {
package betaseries
import (
"bytes"
"fmt"
)
type ShowService service
type Error struct {
package betaseries
import (
"errors"
"fmt"
)
type ShowService service
type ShowResponse struct {
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Tmdb\Repository\DiscoverRepository;
use Tmdb\Model\Query\Discover\DiscoverTvQuery;
class Series extends Command
{
#!/usr/bin/env python
#coding=utf-8
import sys
from PyQt4 import QtGui, QtCore
import os
def notification():
print "good"
@florentsorel
florentsorel / functions.php
Last active September 10, 2018 06:50
WooCommerce : overirde loop/orderby.php template by button group with Bootstrap
<?php
/*
File : functions.php (in your theme)
Override "woocommerce_before_shop_loop" hook.
Add a check : (Line 41 - 43)
Avoid error if administrator choosing "rating" in administration and rating are disabled.
IF "woocommerce_enable_review_rating" option equal "no"
AND
"woocommerce_default_catalog_orderby" option equal "rating"
@florentsorel
florentsorel / index.html
Created January 27, 2014 13:29
Sticky footer & height 100%
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<title>Homepage</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=1000, initial-scale=1">
@florentsorel
florentsorel / class.css
Last active December 28, 2015 21:28
CSS
.ellipsis {
white-space: nowrap;
overflow: hidden;
-ms-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
}
/********** Menu *************/
#menu {
@florentsorel
florentsorel / slider.js
Created September 9, 2013 10:08
Slider JqueryUI
$.fn.sliderLabel = function(options) {
var settings = $.extend({
marginTop: 2,
// Margin between the slider handle and the label (in pixels)
callback: function(value) {
return 'Value: ' + value;
}
}, options);