Skip to content

Instantly share code, notes, and snippets.

View regisnew's full-sized avatar
🏠
Working from home

Rodrigo Régis Palmeira regisnew

🏠
Working from home
  • Tribunal de Contas do Distrito Federal
  • Brasilia - Brazil
  • X @regisnew
View GitHub Profile
@calebwoods
calebwoods / nginx.conf
Created May 10, 2014 20:18
Sample Nginx config for deployment of Angular.js app
server { listen 80;
server_name example.com;
access_log /var/log/example.com/nginx.access.log;
error_log /var/log/example.com/nginx.error.log;
root /var/www/apps/example.com/public;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
}
@mCzolko
mCzolko / FA2Symfony2.md
Last active April 23, 2019 04:11
How to integrate Font Awesome to Symfony 2

Integration

It's easy to integrate Font Awesome into Symfony2 (Twitter Bootstrap, or even use it on its own).

Composer

Add those lines to composer.json

{
  "repositories": [
    {
      "type": "package",
@mhawksey
mhawksey / gist:1170597
Created August 25, 2011 13:02
Google Apps Script to fill in a Document template with Spreadsheet data
function onOpen() {
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}];
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("Fitness Diaries", menuEntries);
}
function createDocFromSheet(){
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries
// get the data from an individual user