Skip to content
View Links a la Mode May 26
View ListMetadataFormats.xml
<?xml version="1.0" encoding="UTF-8" ?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2016-05-25T22:33:06Z</responseDate>
<request verb="ListMetadataFormats">http://vagrant.janium-classic.stable-2015.apache/janium/services/oai.pl</request>
<ListMetadataFormats>
<metadataFormat>
<metadataPrefix>oai_dc</metadataPrefix>
<schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
<metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
</metadataFormat>
View fix the NoMethodError
irb(main):004:0> u.forms.cunt
NoMethodError: [...]
undefined method `cunt' for #<Form::ActiveRecord_Associations_CollectionProxy:0x007fb1388cc508>
Did you mean? count
from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/relation/delegation.rb:136:in `method_missing'
from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/relation/delegation.rb:99:in `method_missing'
from (irb):4
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:110:in `start'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:9:in `start'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:68:in `console'
View install_guest_additions.sh
# Install VirtualBox guest additions on Ubuntu
# https://www.vagrantup.com/docs/virtualbox/boxes.html
VB_VERSION='5.0.20'
wget "http://download.virtualbox.org/virtualbox/$VB_VERSION/VBoxGuestAdditions_$VB_VERSION.iso"
sudo mkdir /media/VBoxGuestAdditions
sudo mount -o loop,ro "VBoxGuestAdditions_$VB_VERSION.iso" /media/VBoxGuestAdditions
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run rm "VBoxGuestAdditions_$VB_VERSION.iso"
sudo umount /media/VBoxGuestAdditions
View mongo.sh
# If using Homebrew
brew services start mongodb #start service
brew services list #list services to see if it's running
brew services stop mongodb #stop service
# If starting manually
mongod --fork --logpath /usr/local/var/log/mongodb/mongo.log # start service [logpath located in mongod.conf]
mongod --shutdown # stop service on linux
mongo admin #stop service osx/other
db.shutdownServer()
View gist:01dd51b532e0d9a15e428946d53820fe
jQuery(document).ready(function(){
var $window = jQuery(window),
$mainMenuBar = jQuery('#nav-module'),
$mainMenuAnchor = jQuery('#anchor-stick');
$window.scroll(function(){
var window_top = $window.scrollTop();
var div_top = $mainMenuAnchor.offset().top;
if (window_top > div_top){
$mainMenuBar.addClass('sticky');
View sdk output
jared@jared-ubuntu ~/trunk/src/scripts $ portageq envvar GENTOO_MIRRORS
https://storage.core-os.net/mirror/portage-stable/ https://storage.core-os.net/mirror/coreos/ http://distfiles.gentoo.org/
jared@jared-ubuntu ~/trunk/src/scripts $ cat /etc/portage/repos.conf/coreos.conf
[DEFAULT]
main-repo = portage-stable
[gentoo]
disabled = true
View jQuery scroll lock
jQuery(document).ready(function(){
var $window = jQuery(window),
$mainMenuBar = jQuery('#nav-module'),
$mainMenuAnchor = jQuery('#anchor-stick');
$window.scroll(function(){
var window_top = $window.scrollTop();
var div_top = $mainMenuAnchor.offset().top;
if (window_top > div_top){
$mainMenuBar.addClass('sticky');
View app.html
<template>
<select multiple value.bind="displayStatus">
<option repeat.for='foo of things' value="${foo.key}">${foo.key} | ${foo.value}</option>
</select>
Current status: ${displayStatus.length}
<hr/>
<select multiple value.bind="displayStatusObjects">
View sjcl.min.js
"use strict";var sjcl={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message};this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message};this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message};this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message};this.message=a}}};
"undefined"!==typeof module&&module.exports&&(module.exports=sjcl);"function"===typeof define&&define([],function(){return sjcl});
sjcl.cipher.aes=function(a){this.s[0][0][0]||this.O();var b,c,d,e,f=this.s[0][4],g=this.s[1];b=a.length;var h=1;if(4!==b&&6!==b&&8!==b)throw new sjcl.exception.invalid("invalid aes key size");this.b=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(0===a%b||8===b&&4===a%b)c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255],0===a%b&&(c=c<<8^c>>>24^h<<24,h=h<<1^283*(h>>7));d[a]=d[a-b]^c}for(b=0;a;b++,a--)c=d[b&3?a:a-4],e
Something went wrong with that request. Please try again.