Skip to content

Instantly share code, notes, and snippets.

@arieljatib
arieljatib / goto-rails.md
Last active August 29, 2015 14:18
Go To Rails

Images SRC

  • image-url("rails.png") becomes url(/assets/rails.png)
  • image-path("rails.png") becomes "/assets/rails.png"
  • asset-url("rails.png") becomes url(/assets/rails.png)
  • asset-path("rails.png") becomes "/assets/rails.png"

source

Styling

Method : button_to

@arieljatib
arieljatib / bs3-safari-sidebarbug.md
Created March 10, 2015 17:28
Bootstrap 3, Safari - large resolution issue on left sidebar with affix + scrollspy
@arieljatib
arieljatib / spc-marketing.md
Last active March 28, 2020 17:16
StackPointCloud and Stackpoint.io Marketing Blurbs

Original, pre-K8s

Bridging on-premise hosting to the Cloud. Secure. Redundant. Scalable.

Second Iteration, Hello Kubernetes!

A new way to manage your Kubernetes, CoreOS stack.

Public

Kubernetes Anywhere - Any Cloud. Any Distribution.

@arieljatib
arieljatib / bs3-django.html
Created December 18, 2014 05:35
Bootstrap 3 w Django's Endless Pagination
<nav>
<ul class="pagination">
{% get_pages %}
{% for page in pages %}
<li><a href="{{ page.url }}">{{ page.number }}</a></li>
{% endfor %}
</ul>
</nav>
@arieljatib
arieljatib / goto-git.md
Last active February 2, 2016 21:20
Go To Git

Basics

  • $ git push origin branch to push local changes to remote branch

Checkout Remote Branch

  • $ git checkout -b branch-name origin/branch-name

Merge from another branch

  1. $ git pull
  2. Merge, from a local branch $ git merge other-branch
  3. OR from a remote branch $ git merge origin/other-branch
@arieljatib
arieljatib / 2-color-button.scss
Created December 9, 2014 18:30
Customizing Bootstrap : Gradient Button w 2 Solid Color Button Hover State
// let's start with the default buttons.
.btn, .btn-default {
@include single-transition(all, 200ms, ease-out); // adding an animation to the transition
background-color: $my-color; // optionally set a colors ... using a variables of course.
color: $text-color;
@include background-image(linear-gradient(top, lighten($my-color, 40%), $my-color)); // let's use a gradient on the default state
&:hover, &:active {
background-color: lighten($my-color, 5%);
// use a gradient and transparency to create the appearance of two solid colors
@include background-image(linear-gradient(0deg, rgba($my-color,0) 0%, rgba($my-color,0) 50%, rgba($my-color,0.7) 65%));
@arieljatib
arieljatib / gke-kubernetes.md
Last active August 29, 2015 14:09
Container Engine, Google Cloud

Container Engine, Google Cloud

These are some random notes captured while attempting the tutorial Getting Started

Outstanding Questions

  • How do I access the Redis database? What if I need to query it directly? If it was on a VM, it wouldn't be a problem. Where does that data live?

Setup

  1. The Before You Begin document includes a button to "Enable the Container Engine API".
  2. From there, you're prompted to select the Project on which to enable the APIs
@arieljatib
arieljatib / cli-color.md
Last active July 6, 2016 21:26
Color Formatting

#Colorizing Terminal These codes are useful when formatting the command line on Terminal in MacOS.

Foreground Colors

Code Color
30 black
31 red
32 green
33 yellow
@arieljatib
arieljatib / gae-deploy.md
Last active August 29, 2015 14:09
Deploying Python App to Google App Engine

Deploying Django App to Google App Engine

TL;DR

Syntax for deploying app

  • set project_ID.
  • the my-project-folder/ should contain app.yaml

appcfg.py -A project_ID update my-project-folder/

NOTE: