Skip to content

Instantly share code, notes, and snippets.

@robertocarroll
robertocarroll / icc-alpha-tweaks
Last active August 29, 2015 13:57
ICC Alpha tweaks
1. Case layout
Problem: The bio box is too big and it needs to indicate that you can click on the name to see more details.
Fix:
bio-box {
font-size: 0.75em;
}
@robertocarroll
robertocarroll / barjeel-catalogue
Created March 10, 2014 16:53
Barjeel catalogue update
.catalogue {
float: left;
padding-bottom: 24px;
padding-right: 24px;
padding-top: 6px;
text-align: center;
}
@robertocarroll
robertocarroll / gist:9511819
Created March 12, 2014 17:24
stages intros - 11 March version
Stages of Proceedings
There are several stages of the ICC process. Where grave crimes occur, the Office of the Prosecutor must first conduct a preliminary investigation before an investigation can begin. Investigations may lead to several cases, which may go through different stages: Pre-Trial stage, Trial stage, Appeals and Revision.
Preliminary examinations
Before an investigation can begin, the Office of the Prosecutor (OTP) conducts a preliminary examination to decide whether there is enough information on crimes of sufficient gravity, providing a reasonable basis to open an investigation. During this examination, OTP analyses whether or not the ICC has jurisdiction (a crime listed in the Rome Statute appears to have been committed by a national of a Member State or on the territory of a Member State, after 1 July 2002); whether an investigation would be admissible (a national court is not already dealing with it); and whether or not an investigation would be in the interests of justice and of the v
@robertocarroll
robertocarroll / gist:9683291
Created March 21, 2014 10:21
main.js ICC Alpha
// scroll spy elements
var scrollspy = [];
jQuery(document).ready(function($){
// run on page load
$(document).ready(function(){
// top nav
$('.top-nav').spNav();
@robertocarroll
robertocarroll / up-arrow-html
Last active August 29, 2015 13:57
Arrows - HTML symbol
&#x2191
@robertocarroll
robertocarroll / topHat
Created October 3, 2014 16:35
Fixed border top - CSS
<div id="topHat"> </div>
#topHat {
background-color: #2c91bb;
height: 7px;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
@robertocarroll
robertocarroll / index.html
Created October 11, 2014 11:05
Starter HTML
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Page title</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<!-- External CSS -->
<link rel="stylesheet" href="code-guide.css">
@robertocarroll
robertocarroll / gist:61966d903c630099564f
Created October 25, 2014 11:52
Convert date format using for loop
JS
var index;
for (index = 0; index < documents.length; ++index) {
documents[index].startDate = moment(documents[index].startDate, "YYYY,MM,DD").format("YYYY-MM-DD");
}
<h1 class="noise-glitch" data-text="">
<a href="/">Name</a>
</h1>
.noise-glitch:after {
animation: 2s linear 0s alternate-reverse none infinite noise-anim;
background: none repeat scroll 0 0 #fbfbfb;
clip: rect(0px, 900px, 0px, 0px);
color: #444;
content: attr(data-text);
button, .button {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
border: 5px solid;
box-shadow: none;
font-family: "adelle",georgia,serif;
letter-spacing: 0.1em;
outline: medium none;
padding: 0.2em 0.6em;
text-transform: uppercase;
}