This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.3' | |
gem 'rack' | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
gem 'compass', ">= 0.12.alpha.0" | |
gem 'compass-susy-plugin', "0.9", :require => 'susy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/fast_gettext.rb | |
FastGettext.add_text_domain 'app', :path => 'locale' | |
FastGettext.default_available_locales = ['en', 'fr'] | |
FastGettext.default_text_domain = 'app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The first is my definition. As you can note, there is a 'templates' argument. The problem was there before I added this. | |
I added what I changed to the inc/classes/meta-box.php to make the metabox definition check for the template used. It is very useful to have metabox on some pages only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get install -y openssl vim tmux git-core curl | |
RUN apt-get install -y python-software-properties python | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade | |
RUN apt-get install -y nodejs | |
RUN curl https://install.meteor.com | /bin/sh -x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1/ HERE I WANT MY WP-CONFIG.PHP TO BE OVERWRITTEN IF IT EXISTS, | |
# SO I CHANGED THE TEST FOR THE PWD FILE | |
if [ ! -f /mysql-root-pw.txt ]; then | |
#let's create a user to ssh into | |
SSH_USERPASS=`pwgen -c -n -1 8` | |
mkdir /home/user | |
useradd -G sudo -d /home/user user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form accept-charset="UTF-8" action="/companies/12" class="l-inline" data-remote="true" method="post" novalidate="novalidate"> | |
<div class="fields"> | |
<div class="row"> | |
<!-- Here goes the input --> | |
</div> | |
</div> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for(@visualization) do |f| | |
= f.input :title | |
= f.fields_for :inputs_visualizations do |iv| | |
= iv.input :color | |
= iv.fields_for :input do |i| | |
= i.input :title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DOCKER | |
# ====== | |
if hash docker 2>/dev/null; then | |
alias dk="docker" | |
fi | |
dsa () { | |
docker stop $(docker ps -a -q) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task( | |
'build-jsx', | |
() => { | |
return ( | |
browserify({ | |
entries: './client/index.js', | |
debug: true, | |
}) | |
.transform(babelify.configure({ | |
presets: ['es2015', 'react'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Adapter from "ember-data/adapters/json-api"; | |
export default Adapter.extend(); |
OlderNewer