Skip to content

Instantly share code, notes, and snippets.

import scala.util.Random
import scala.language.reflectiveCalls
class Customer(customerId: String, code: String, customerName: String, host: String, val isEnabled: Boolean,
languageCode: String, val isServicesOnly: Boolean, val isEvaluation: Boolean) {
def customerId(): String = customerId
def customerName(): String = customerName
def host(): String = host
def languageCode(): String = languageCode
override def toString = s"Customer($customerId, $code, $customerName, $host, $isEnabled, $languageCode, $isServicesOnly, $isEvaluation)"
fatal error: runtime: out of memory
goroutine 658952 [running]:
runtime.throw(0xb81d97)
/usr/lib/go/src/pkg/runtime/panic.c:464 +0x69 fp=0x7f9480db5760
runtime.SysMap(0xc2322c0000, 0x100000, 0xb92358)
/usr/lib/go/src/pkg/runtime/mem_linux.c:131 +0xfe fp=0x7f9480db5790
runtime.MHeap_SysAlloc(0xb9c2a0, 0x100000)
/usr/lib/go/src/pkg/runtime/malloc.goc:473 +0x10a fp=0x7f9480db57d0
MHeap_Grow(0xb9c2a0, 0x10)
@pedrosland
pedrosland / bing-rotate.sh
Created April 11, 2014 12:26
Script to download Bing images and set as the wallbaper - several modifications from original
#!/bin/bash
# $bing is needed to form the fully qualified URL for
# the Bing pic of the day
bing="http://www.bing.com"
# $xmlURL is needed to get the xml data from which
# the relative URL for the Bing pic of the day is extracted
# The idx parameter determines where to start from. 0 is the current day,
# 1 the previous day, etc.
@pedrosland
pedrosland / jQuery.ajaxQueue.min.js
Created December 6, 2011 15:39 — forked from Akaryatrh/jQuery.ajaxQueue.min.js
jQuery.ajaxQueue - A queue for ajax requests
/*
* jQuery.ajaxQueue - A queue for ajax requests
*
* (c) 2011 Pedro Sland
* Original by (c) 2011 Corey Frang
*
* Dual licensed under the MIT and GPL licenses.
*
* Requires jQuery 1.5+
*/