Skip to content

Instantly share code, notes, and snippets.

🌌
exploring

Alexandre Girard alx

🌌
exploring
Block or report user

Report or block alx

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
@alx
alx / bot.py
Created Sep 17, 2019
Arxiv bot for rocketchat
View bot.py
arxiv
from requests import sessions
from pprint import pprint
from rocketchat_API.rocketchat import RocketChat
import arxiv
import re
regex = r"^https://arxiv\.org\/.*\/(\d+\.\d+(?:v1)?).*$"
login = ""
@alx
alx / webcam_detect.js
Last active Jun 21, 2018
Use deepdetect-js to predict detection_600 classes from online webcam images
View webcam_detect.js
var fs = require('fs');
var moment = require('moment');
var DD = require('deepdetect-js');
const dd = new DD({
host: 'localhost',
port: 18104,
path: '/api/private/predict'
})
@alx
alx / api.js
Created Apr 18, 2017 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
View api.js
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
View keybase.md

Keybase proof

I hereby claim:

  • I am alx on github.
  • I am alxgirard (https://keybase.io/alxgirard) on keybase.
  • I have a public key whose fingerprint is B670 AE8A 90AE 2345 2126 1686 DB21 3723 D0B0 8480

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am alx on github.
  • I am alxgirard (https://keybase.io/alxgirard) on keybase.
  • I have a public key whose fingerprint is C681 143F 0F3D 468D A4FC 8485 D9E6 EC82 B82D 73A1

To claim this, I am signing this object:

@alx
alx / videoprojector.sh
Last active Aug 29, 2015
videoprojector.sh
View videoprojector.sh
#!/bin/bash
#
# chkconfig: 35 90 12
# description: Videoprojector start/stop
#
# Get function from functions library
. /etc/init.d/functions
# Start the videoprojector
start() {
initlog -c "echo -n Starting videoprojector: "
View octopress-post-recieve-hook.md

Depends on:

  • Octopress git repo
  • tar
  • rsync
  • rake

Fill in the variables appropriately and copy to hooks/post-receive in your bare git repo

  • git_branch: git branch which holds the source files for the live site
@alx
alx / sigmajs_modularity..js
Created Apr 8, 2013
Sigma.js Modularity coloration plugin. Depends on d3js for d3.scale.category20() call.
View sigmajs_modularity..js
$(document).ready(function() {
(function(){
var Modularity = function(sig) {
sigma.classes.Cascade.call(this);
var self = this,
domains = [];
View THSF-2013
['code', 'art', 'boot', 'mix', 'verse'].each { |hack| re(hack) }
@alx
alx / output.log
Created Jun 13, 2012
pws openssl debug log
View output.log
~$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1c.tar.gz
Already downloaded: /Users/alx/Library/Caches/Homebrew/openssl-1.0.1c.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1c --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin64-x86_64-cc
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1c/share/man MANSUFFIX=ssl
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
You can’t perform that action at this time.