Skip to content

Instantly share code, notes, and snippets.

@drjova
drjova / index.html
Created December 17, 2015 10:27 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/kofule
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div ng-app="app">
<div ng-controller="invenioSearchController as vm">
@drjova
drjova / angularjs_directive_attribute_explanation.md
Created January 5, 2016 09:04 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@drjova
drjova / osx-for-hackers.sh
Created January 13, 2016 10:37 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@drjova
drjova / osx-for-hackers.sh
Created January 13, 2016 10:41 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@drjova
drjova / arch-linux-install
Created March 19, 2016 10:17 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
alabaster==0.7.8
amqp==1.4.9
anyjson==0.3.3
apipkg==1.4
appnope==0.1.0
arrow==0.8.0
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
billiard==3.3.0.23
binaryornot==0.4.0
``cds-test-wn-02``
alabaster==0.7.9
amqp==1.4.9
aniso8601==1.1.0
anyjson==0.3.3
apipkg==1.4
appnope==0.1.0
arrow==0.8.0
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
billiard==3.3.0.23
@drjova
drjova / resizer.txt
Last active May 13, 2021 16:12 — forked from benvium/resizer.txt
Reskize images
#!/bin/bash -e
# Ensure we're running in location of script.
cd "`dirname $0`"
for f in *; do
if [[ $f == *@3x* ]];
then
echo "$f -> ${f//@3x/@2x}, ${f//@3x/}"
convert "$f" -resize 66.66666% "${f//@3x/@2x}"
@drjova
drjova / ImageMagick 6.9.7-8 Homebrew Formula.md
Last active January 10, 2018 16:53 — forked from yvbeek/ImageMagick 6.9.7-8 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.7-8

Homebrew Formula patching old ImageMagick release 6.9.7-8

Install

brew install https://gist.github.com/Zyphrax/0c53e5ffa9d523ff4af37e2fab71c7e6/raw/bad11375742cadcbc3741df652e472bb0419c4dc/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.