Skip to content

Instantly share code, notes, and snippets.

View iamajvillalobos's full-sized avatar

AJ Villalobos iamajvillalobos

View GitHub Profile
.dashboard-container {
@extend .container;
}
.dashboard {
@include make-row;
}
.dashboard-contents {
@include make-lg-column(10);
@iamajvillalobos
iamajvillalobos / _base.scss
Created June 9, 2015 05:05
Skyline CSS Architecture - this is currently a work in progress in our application. I use sass since this is a rails app, we are extending bootstrap framework, mostly I just used the grid, and I want to able to customized more the framework. My CSS architecture is based on how bootstrap structure itself, I mostly used the _variables.scss file to…
body {
margin-top: $header-height;
}
.main-content-container {
@include make-lg-column(10);
}
.main-content {
min-height: 78vh;
{
"9": {
"label": "Organisation Administrator(KINNECT)",
"slug": "organisation_admin",
"resource_name": "KINNECT",
"resource_type": "Organisation",
"resource_id": 1,
"key": "organisation_admin:Organisation:1",
"position": 3,
"role_id": 145365
.benefit-features
.benefit-features-title Benefits
.benefit-features-icons-container
.benefit-feature-icon
= inline_svg("skyline/Dollars.svg")
.benefit-feature-icon
= inline_svg("skyline/Clock.svg")
.benefit-feature-icon
= inline_svg("skyline/Cross.svg")
.benefit-feature-icon
var myApp = angular.module('myApp', []);
myApp.controller('MyController', function MyController($scope) {
$scope.jobs = [
{
"id": "2a23eb06-dc3b-11e3-9149-14d3aa507c71",
"created_at": "Mon Jun 13 21:35:36 UTC 2016",
"title": "Enterprise Support Engineer",
"location": "SF/Remote",
age = [26, 27, 24]
friends = { mark: 26, christopher: 27, aj: 24 }
def reject(enumerable)
if enumerable.is_a? Array
results = []
enumerable.each do |item|
results << item unless yield(item)
end
puts results.inspect
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = 'e44305eb520e921351e80da67a0a64529e246bd2190955be57811a05da7faf90a36c7c48932bb54ab061f52ec7a95abcd04dffbe7f4720d9296077a671439978'
ActiveRecord::Schema.define(version: 20160229132308) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
[Tue Mar 01 21:13:21.562121 2016] [suexec:notice] [pid 10231] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 01 21:13:21.580131 2016] [so:warn] [pid 10231] AH01574: module ruid2_module is already loaded, skipping
[Tue Mar 01 21:13:21.582695 2016] [auth_digest:notice] [pid 10231] AH01757: generating secret for digest authentication ...
[Tue Mar 01 21:13:21.584844 2016] [:notice] [pid 10231] mod_ruid2/0.9.8 enabled
[Tue Mar 01 21:13:21.613079 2016] [mpm_prefork:notice] [pid 10231] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 configured -- resuming normal operations
[Tue Mar 01 21:13:21.613111 2016] [core:notice] [pid 10231] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Mar 01 21:13:25.036787 2016] [mpm_prefork:notice] [pid 10231] AH00171: Graceful restart requested, doing restart
[Tue Mar 01 21:13:25.127153 2016] [so:warn] [pid 10231] AH01574: module ruid2_module is already loaded, skipping
[Tue Mar 01 21:13:25.130232 2016] [auth_digest:noti
@iamajvillalobos
iamajvillalobos / controller_test_sample.rb
Created May 24, 2016 14:08
jsonapi controller sample test
require 'rails_helper'
RSpec.describe UsersController, type: :controller do
describe 'GET #index' do
it "populates an array of all users" do
christa = FactoryGirl.create(:user, name: "Christa")
jayne = FactoryGirl.create(:user, name: "Jayne")
get "index", nil, { 'Content-Type' => 'application/vnd.api+json' }