Skip to content

Instantly share code, notes, and snippets.

View picsoung's full-sized avatar
🧀
🇫🇷 🐸 Hacking around 🤓👨‍💻

Nicolas Grenié picsoung

🧀
🇫🇷 🐸 Hacking around 🤓👨‍💻
View GitHub Profile
@picsoung
picsoung / about.md
Last active June 5, 2017 21:16 — forked from catwell/about.md
Programming Achievements: How to Level Up as a Developer
@picsoung
picsoung / article_geek_social.md
Last active December 25, 2015 00:49
Article autour du geek social

Geek? oui... mais social

Intégré au Petit Larousse en 2010, le terme "geek" est aujourd'hui devenu un mot commun utilisé de 7 à 77 ans, si bien que même votre mamie Ginette vous lance des "tu gikes ?" incongrus. Utilisé à tord et à travers, souvent connoté, il est temps d'affirmer cette particularité et d'en faire une force.

Si en plus de tout ça, vous avez les poils qui s'irrissent quand vous entendez dans la bouche de la très jeune que "geeker" c'est passé son temps sur Facebook ou Ask (soyons modernes :P) alors peut-être qu'il est temps de le reconnaître... vous en êtes un. Un vrai, un originel, un geek qui code.

Notez, que là où vous lirez le mot "geek" vous pouvez tout aussi y transposez le terme "geekette", pendant féminim et tout aussi particulier du geek.

J'aimerais notamment abordez dans cet article la dimension sociale du geek du XXIème siècle. Il vrai que l'on peut passer des heures sur l'ordinateur à démêler des problèmes pour le plaisir, ou alors à chercher un satané point virgule oublié ;

@picsoung
picsoung / iframe_wordpress.js
Created October 11, 2013 08:32
script to resize iframe in wordpress
<script language="JavaScript">
function frameResize(frameObj) {
var frameHeight;
// Reset the height back to it's original (shrink the frame)
frameObj.height = '800px';
// Set the frame height to match the content
frameHeight = frameObj.contentWindow.document.body.scrollHeight;
frameObj.height = frameHeight + 'px';

Deploy your API on EngineYard

APIs should be easy to develop and deploy, that's our goal at 3scale. In the past, Steve recorded a video tutorial showing how easy it is to create an API using GRAPE Ruby framework and deploy on Heroku.

Today I wanted to show you, that APIs are platform agnostic and deploying to EngineYard is simple.

Requirements :

  • Ruby
@picsoung
picsoung / article_hackathon.md
Last active February 12, 2017 15:09
Article de blog sur comment bien vivre un hackathon

#Ce week-end, c'est hackathon !

Ce weekend était chargé au niveau des hackathons. Il y en avait un peu partout en Europe, le AngelHack London, le TechCrunch Disrupt à Berlin, en passant par BattleHack à Barcelone (auquel j'ai participé), le Hackathon du ministère de la culture à Paris, ou encore le départ des StartupBus Europe et certainement pleins d'autres ailleurs.

Des centaines, que dis-je des milliers de développeurs se sont amusés à construire des nouvelles apps, de nouveaux sites web, de nouveaux hardware pour le fun, et un peu pour le côté "fame". Les gagnants du AngelHack et du BattleHack gagnaient par exemple un voyage dans la Silicon Valley, la Mecque des geeks. Ceux du TC Disrupt, la modique somme de 10 000€ et la possibilité de pitcher sur scène. 24 heures de son temps pour repartir avec des prix si prestigieux, ça vaut certainement le coup !

Moi aussi je peux le faire ! Moi aussi je veux faire un hackathon !

Maman, quand je serai grand je gagnerai un hackathon ! Ça pourrait presque être le n

@picsoung
picsoung / apisio_doc_apis.json
Last active August 29, 2015 14:01
APIs.io /apis example
{
"status": "success",
"data": [
{
"apiFileUrl": "http://apievangelist.com/api.json",
"authoritative": true,
"contact": [
{
"type": "email",
"url": "info@apievangelist.com"
@picsoung
picsoung / twitterAuthMiddleware.lua
Last active August 29, 2015 14:01
OAuth twitter middleware for APItools
return function (request, next_middleware)
-- change to your own Twitter keys
api_key = "MY_TWITTER_API_KEY"
api_secret = "MY_TWITTER_API_SECRET"
-- concatenate by ':'
str = api_key .. ':' .. api_secret
console.log(str)
-- generate base64 string
curl --request 'POST' 'https://stream.twitter.com/1.1/statuses/filter.json' --data 'track=accident' --header 'Authorization: OAuth oauth_consumer_key="BOqJoxLBCynsE8KPudaBu9Qgc", oauth_nonce="656ea20ff1b2e2debf67d9517e25a62b", oauth_signature="X8tuRF7%2FWE0fby0OWsFaiwJ%2BbGM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1402856048", oauth_token="954089953-Kanb4267w9ovT6kenJPxi5RitjcuCJ2i6AUcCScL", oauth_version="1.0"' --verbose
@picsoung
picsoung / sengrid_apisjson_0.13.json
Created August 1, 2014 18:38
sendgrid apis.json v0.13 sample
{
"name": "Sendgrid",
"description": "SendGrid's cloud-based email infrastructure relieves businesses of the cost and complexity of maintaining custom email systems. SendGrid provides reliable delivery, scalability and real-time analytics along with flexible API's that make custom integration a breeze.",
"type": "community",
"url": "http://sendgrid.com",
"image": "http://assets3.sendgrid.com/mkt/assets/logos_brands/horizontal/PNG/logo_full_color_flat-a982ded4b0b159db49a552f2cf490439.png",
"apis": [
{
"name": "Web API",
"description": "SendGrid offers a Web API that allows customers to retrieve information about their account such as statistics, bounces, spam reports, unsubscribes, and other information. This API is not RESTful since for most calls both GET and POST HTTP verbs can be used interchangeably, and other verbs are not supported.",
@picsoung
picsoung / gist:92ab865bba134c69bf49
Created February 26, 2015 11:42
Correction workshop le wagon
resource :words do
get '/mots/:word' do
{word: params[:word], sentiment:"unknown"}.to_json
end
post ':word' do
{word: params[:word], result: "thinking"}.to_json
end
end