Skip to content

Instantly share code, notes, and snippets.

@jdkram
jdkram / gist:5087126
Created Mar 5, 2013
Error installing Nokogiri on MacOS 10.8.2 - weird problems with UTF-8 conversion
View gist:5087126
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib'
This could take a while...
Successfully installed nokogiri-1.5.6
Parsing documentation for nokogiri-1.5.6
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping
Installing ri documentation for nokogiri-1.5.6
Done installing documentation for nokogiri (4 sec).
1 gem installed
@jdkram
jdkram / gist:5087482
Created Mar 5, 2013
Errors with UTF-8 conversion that keep cropping up with my Ruby installation.
View gist:5087482
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib'
This could take a while...
Successfully installed nokogiri-1.5.6
Parsing documentation for nokogiri-1.5.6
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping
Done installing documentation for nokogiri (3 sec).
1 gem installed
@jdkram
jdkram / icite_sample_code.rb
Created Aug 13, 2016
iCite sample Ruby script
View icite_sample_code.rb
require 'open-uri'
require 'json'
require 'csv'
ICITE_URL = "https://icite.od.nih.gov/api/pubs"
ICITE_FIELDS = ["pmid", "authors", "citation_count", "citations_per_year", "expected citations_per_year", "field_citation_rate", "is_research_article", "journal", "nih_percentile", "relative_citation_ratio", "title", "year"]
SAMPLE_PMIDS = %w(
18541772 18542051 18542297 18543598 18544040
18544041 18544607 18545699 18546057 18546185
@jdkram
jdkram / DestinyTips.md
Created Oct 29, 2017
A list of resources for Destiny 2 players
View DestinyTips.md

Hi folks,

I've put together a list of resources for players of a variety of skill levels. If anyone has any corrections or suggestions please let me know!

Apps

Destiny official app, for LFG and clan chat: https://play.google.com/store/apps/details?id=com.bungieinc.bungiemobile&hl=en_GB

Inventory management:
An absolute must - get your kit around your characters even when away from The Tower, always ensure you're at maximum light level and quickly switch to specific loadouts for PvP etc.
View keybase.md

Keybase proof

I hereby claim:

  • I am jdkram on github.
  • I am jdkram (https://keybase.io/jdkram) on keybase.
  • I have a public key ASC9TsJt8hvsTQKfuucIoVJDziHEy_YJC1c9emNjpKCdTQo

To claim this, I am signing this object:

View sample_tableau_notebook_controller
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Tableau Server Controller"
]
},
{
@jdkram
jdkram / Win10Daily_BoxSetup.txt
Last active Dec 2, 2019 — forked from cygnull/Win10Daily_BoxSetup.txt
Boxstarter script for Windows 10 Daily use, Gaming, Developement..
View Win10Daily_BoxSetup.txt
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@jdkram
jdkram / boxstarter.ps1
Last active Dec 2, 2019 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
View windows-boxstarter.ps1
# Boxstarter Script (Windows scripted deployment)
# originally github.com/elithrar <matt@eatsleeprepeat.net>
# modified by github.com/jdkram on 2019-03-20
#
# Install Boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# Set: Set-ExecutionPolicy RemoteSigned
# Then: Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#