Skip to content

Instantly share code, notes, and snippets.

View BaptisteDixneuf's full-sized avatar
:octocat:
How can I help?

Dixneuf Baptiste BaptisteDixneuf

:octocat:
How can I help?
View GitHub Profile
@BaptisteDixneuf
BaptisteDixneuf / OVH_Public_Cloud_Storage_API_OpenStack_Swift.md
Created June 25, 2015 21:23
OVH Public Cloud Object Storage et API OpenStack Swift
@elisee
elisee / 1-installation.md
Last active May 14, 2020 08:09
Démarrer avec Node.js et TypeScript

Installer un environnement de développement Node.js et TypeScript

Node.js

Installer depuis http://nodejs.org/

  • Initialiser un nouveau projet : npm init
  • Installer une dépendance : npm install socket.io --save (NOTE: si vous voyez plein de rouge pendant l'installation de socket.io, ne vous inquiétez pas, il essaie de compiler le module avec votre compilateur C++ et s'il échoue, il télécharge une version précompilée à la place)

TypeScript

@mitchwongho
mitchwongho / 1README.md
Last active June 1, 2018 14:24
Implement CORS Request Headers in PlayFramework 2.3.x Applications

Introduction

I recently needed to apply CORS (Cross Origin Request Scripting) to a project that I'm working on. If found 2 posts that helped to achieve it:

I combined both to solve my problem: I have a User CRUD (Play!) webservice and a (Play!) web app that services a SPA (Single Page Application). The SPA needs to access the CRUD webservice, but to acheive this, I would need to apply some CORS rules on both applications.

Files

@cluke009
cluke009 / pre_save.py
Created August 22, 2012 14:13
Sublime Text 2 plugin that converts file to unix line endings and tabs to space on save
import sublime, sublime_plugin
# http://www.butlerpc.net/blog/2012/07/sublime-text-2-plugin-to-convert-tabs-to-spaces-on-save/
# tabs to spaces
# https://github.com/SublimeText/LineEndings/blob/master/LineEndings.py
# for line ending conversion code
class ConvertTabsToSpaces(sublime_plugin.EventListener):
def on_pre_save(self, view):
edit = view.begin_edit()