Skip to content

Instantly share code, notes, and snippets.

View AngelBerihuete's full-sized avatar
🌳

A. Berihuete AngelBerihuete

🌳
View GitHub Profile
@AngelBerihuete
AngelBerihuete / query_argonaut.pro
Created May 2, 2016 16:30 — forked from gregreen/query_argonaut.pro
Query Argonaut Server (for 3D Dust Map)
;+
; NAME:
; query_argonaut
;
; PURPOSE:
; Query the Argonaut server for 3D dust information or SFD
;
; CALLING SEQUENCE:
; qresult = query_argonaut(/struct, /debug, _extra=coords)
;
#Load library mass and set seed
library(MASS)
set.seed(100)
# We are going to use 3 random variables
m <- 3
# Number of samples to be drawn
n <- 2000
@AngelBerihuete
AngelBerihuete / server.R
Last active August 29, 2015 14:08 — forked from yihui/server.R
library(shiny)
shinyServer(function(input, output) {
# Make three independent, repeatable copies of rnorm so that the underlying
# random values don't change
rnorm1 = repeatable(rnorm)
rnorm2 = repeatable(rnorm)
rnorm3 = repeatable(rnorm)
@AngelBerihuete
AngelBerihuete / DebianBoot.txt
Last active February 24, 2016 12:22
Debian bootable USB stick on OSX
# http://askubuntu.com/questions/192620/how-to-make-ubuntu-iso-bootable-on-a-usb-stick-with-osx
#
# Requirements:
# - pen drive formatted in FAT
# - iso file downloaded from: http://cdimage.debian.org/debian-cd/7.2.0/amd64/iso-dvd/debian-7.2.0-amd64-DVD-1.iso
# - pen drive is on /dev/disk1 -> check with "diskutil list"
hdiutil convert -format UDRW -o debianDVD.img debian-7.2.0-amd64-DVD-1.iso
diskutil unmountDisk /dev/disk1
sudo dd if=debianDVD.img of=/dev/rdisk1 bs=1m