Skip to content

Instantly share code, notes, and snippets.

@ekumachidi
ekumachidi / Overlay pictures.html
Created February 27, 2017 08:24
Overlay pictures
<!-- Sample code to overlay pictures -->
<div class="height-100vh center-aligned">
<!-- Background image or banner -->
<img class="background-image" src="http://i.imgur.com/1aBfM.png" />
<!-- Uploaded image -->
<img src="http://i.imgur.com/DH3Qw.png" class="text">
</div>
<style type="text/css">
body {
<!-- export div to png -->
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<span id="widget" class="widget" field="AGE" roundby="20" description="Patient age, in years">
<div class="header ng-scope">
<div class="title ng-binding">AGE</div>
<div class="container">
<div class="row">
<div>
PRICING
</div>
<div class="span3">
<div class="well">
<h2 class="muted">Starter</h2>
<p><span class="label">POPULAR</span></p>
<ul>
<div class="row ">
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<div class="db-wrapper">
<div class="db-pricing-seven">
<ul>
<li class="price">
<i class="glyphicon glyphicon-qrcode"></i>
STARTER - $0 / month
</li>
@ekumachidi
ekumachidi / API.md
Created April 21, 2016 07:57 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

CREATE TABLE Roles (
id SERIAL PRIMARY KEY,
name TEXT,
created_at TIMESTAMP,
updated_at TIMESTAMP
);
CREATE TABLE users
(
id serial NOT NULL,
def new
@user = User.new
@package = Package.all
end
def create
@user = user.new(user_params)
if @user.save
redirect_to :action => ‘list’
else
import java.util.Iterator;
import java.util.NoSuchElementException;
public class ResizingArrayBag<Item> implements Iterable<Item> {
private Item[] a; // array of items
private int N = 0; // number of elements on stack
public ResizingArrayBag() {//initialize an empty array
a = (Item[]) new Object[2];
}
@ekumachidi
ekumachidi / Merge Sort Implementation in Java
Created October 2, 2015 19:50
Merge Sort Implementation in Java
public class MergeSort {
public static void merge(int[]a,int[] aux, int f, int m, int l) {
for (int k = f; k <= l; k++) {
aux[k] = a[k];
}
int i = f, j = m+1;
for (int k = f; k <= l; k++) {
if(i>m) a[k]=aux[j++];