Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName:'Ember Twiddle',
entries: [
{
id: 1,
name: 'Eric',
author: {
@diogoca
diogoca / config.json
Created October 27, 2016 18:56 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#b49572",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@diogoca
diogoca / Linux Static IP
Created November 20, 2015 15:26 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@diogoca
diogoca / redis-server
Last active August 29, 2015 14:19 — forked from tessro/redis-server
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
@diogoca
diogoca / purge.vcl
Created January 2, 2014 13:58 — forked from ismasan/purge.vcl
# This goes in vcl_recv
# It gives you:
# curl -X PURGE http://some.example.com/.*
# curl -X PURGE http://some.example.com/blog/.*
# curl -X PURGE http://some.example.com/blog/2011/bar.html
# curl -X PURGE http://another.example.com/.*
#
if (req.request == "PURGE") {
# Wildcard, per-domain purging
purge("req.http.host == " req.http.host " && req.url ~ " req.url "$");
@diogoca
diogoca / README.md
Created September 26, 2013 14:01 — forked from aronwoost/README.md

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

@diogoca
diogoca / bootstrap.php
Last active December 20, 2015 00:39 — forked from jeroenherczeg/bootstrap.php
Twitter Bootstrap Partial View for Zend Navigation
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
protected function _initNavigation() {
// make sure the layout is loaded
$this->bootstrap('layout');
// get the view of the layout
$layout = $this->getResource('layout');
$view = $layout->getView();