Skip to content

Instantly share code, notes, and snippets.

View squirelo's full-sized avatar
💭
Currently entertaining

Valentin Squirelo squirelo

💭
Currently entertaining
View GitHub Profile
@squirelo
squirelo / gist:4413129
Created December 30, 2012 14:58
Just a snippet
body {
font-family: "OpenSans", Helvetica, Arial, sans-serif;
}
.pull-right-footer {
text-align: center;
padding-top: 20px;
}
import os
import datetime
import time
# Remplace touch par ton programme
photo_cmd = "raspistill -t 0 -vs -ex auto -awb sun -o"
photo2_cmd = "raspistill -t 1000 -vs -ex auto -o"
video_cmd = "raspivid -t 10000 -vs -ex auto -awb sun -o"
video2_cmd = "raspivid -t 10000 -vs -ex auto -o"
upstagram_cmd = "sudo python /home/pi/upstagram3.py"
void authenticateHandler(YunClient client) {
String code = client.readString();
code.trim();
/////si j'enleve ca ca marche plus
if(authenticate(code)) {
log("Authenticated, opening door.");
}
else {
log("Failed to authenticate");
@squirelo
squirelo / gist:5470ac512a2e333961c1
Created September 30, 2014 10:24
resize a background image
$(document).ready(function() {
$('.full-image').css({'height':(($(window).height()))+'px'});
$(window).resize(function(){
$('.full-image').css({'height':(($(window).height()))+'px'});
});
});
@squirelo
squirelo / com.myo.spotify
Last active August 29, 2015 14:07
myo spotify
scriptId = 'com.ajc292.myoDev.SpotifyControlv2'
function playpause()
myo.keyboard("space", "press")
end
function Forward()
myo.keyboard("right_arrow", "press", "command")
end
tell application "Google Chrome"
activate
set theUrl to "http://catvsdino.com"
if (count every window) = 0 then
make new window
end if
set found to false
set theTabIndex to -1
tell application "Google Chrome"
repeat with w in windows
set i to 1
repeat with t in tabs of w
if URL of t starts with "https://mail.google" then
set active tab index of w to i
set index of w to 1
return
end if
set i to i + 1
gst-launch-1.0 -v tcpclientsrc host=10.0.1.51 port=5000 \
! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
@squirelo
squirelo / .md
Created August 8, 2015 08:34
crm + behavorial mailing + ecommerce

Viewed Product When the customer views a product listing. Viewed Product Reviews When the customer views the reviews for a specific product. Added Product When the customer adds a product to their shopping cart. Removed Product When the customer removes a product from their shopping cart. Reviewed Product When the customer submits a review for a product. Wishlisted Product When the customer adds a product to their wishlist. Completed Order When the customer completes an order. Registerd When the customer signs up for an account. Logged In When the customer logs in to their account. Logged Out When the customer logs out of their account.

@squirelo
squirelo / gist:47ba3885e44d1da32516
Created February 1, 2016 10:16
Verifying that +squirelo is my blockchain ID. https://onename.com/squirelo
Verifying that +squirelo is my blockchain ID. https://onename.com/squirelo