Skip to content

Instantly share code, notes, and snippets.

View chrishubert's full-sized avatar
😍
They see me rolling ...

Christophe chrishubert

😍
They see me rolling ...
View GitHub Profile
@chrishubert
chrishubert / Following_Robot.ino
Last active May 18, 2024 10:47
Obstacl_Avoiding_Robot.ino
#include <Servo.h>
#include <NewPing.h>
// Define the motor control pins
const int LEFT_MOTOR_FORWARD = 5;
const int LEFT_MOTOR_BACKWARD = 4;
const int RIGHT_MOTOR_FORWARD = 3;
const int RIGHT_MOTOR_BACKWARD = 2;
// Define the ultrasonic sensor pins
@chrishubert
chrishubert / leadsquared_widget.js
Last active May 24, 2016 13:59
LeadSquared Widget for FreshDesk
/* Widget to be entered in FreshDesk Custom Widget
<div id="leadsquared_widget" title="LeadSquared Data">
<div class="content"></div>
<div class="error"></div>
</div>
<script type="text/javascript">
//The js file is a direct copy of the content of this Gist
@chrishubert
chrishubert / GASAlexa.js
Created January 18, 2016 11:42
Google Apps Script Alexa Data Scapper
/* Originaly based on Reddit Scraper written by Amit Agarwal */
/* Alexa script modified by hubertchristophe.com */
/* January 15, 2016 */
/* Replace URL with the Expected URL */
var ALEXA = "rooang.com";
function run() {
deleteTriggers_();
@chrishubert
chrishubert / nginx.conf
Last active May 27, 2016 17:56
nginx config files for WordPress (taken from) https://codex.wordpress.org/Nginx
# Generic startup file.
user {user} {group};
#usually equal to number of CPUs you have. run command "grep processor /proc/cpuinfo | wc -l" to find it
worker_processes 2;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
# Keeps the logs free of messages about not being able to bind().
@chrishubert
chrishubert / DropTables.php
Created November 6, 2015 01:32
php artisan migrate:clear
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class DropTables extends Command
{
@chrishubert
chrishubert / JNE_tracking.js
Created August 23, 2015 14:09
JNE tracking for Google Spreadsheet
function JNE_tracking (awb){
var payload =
{
"username" : "APIUSER",
"api_key" : "d8dedbecf40d6c09f22704342907d804"
};
var options =
{
"method" : "post",
"payload" : payload