Skip to content

Instantly share code, notes, and snippets.

View aziaziazi's full-sized avatar

Camille Gabrieli aziaziazi

View GitHub Profile
@r00tdaemon
r00tdaemon / Host staticman v2 API on heroku.md
Created March 21, 2019 16:34
Host staticman v2 API on heroku

Host staticman v2 API on heroku

  • Creat a new github account which will be added as collaborator to the project using staticman.
  • Go to settings -> developer settings -> personal access tokens. Create a token with admin:repo_hook permission.
  • Save the token.

  • Create a new app on heroku
  • Setup ENV variables
@kevinweber
kevinweber / encodeSvg.js
Created October 31, 2016 05:36
Helper: Convert React component (SVG element) to base64 encoded URL. Useful for adding a background image.
import ReactDOMServer from 'react-dom/server';
export function encodeSvg(reactElement) {
return 'data:image/svg+xml,' + escape(ReactDOMServer.renderToStaticMarkup((reactElement)));
}
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #