This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SELECT * FROM drug_status WHERE sid IN (SELECT status_id FROM drug_identification_status WHERE identification_id IN (SELECT sid FROM drug_identification WHERE drug_id = (SELECT sid FROM drug WHERE drug_id = 17364))); | |
+-----------------------+--------------------------------------+---------+---------------------+-------------------------+-------------+ | |
| SID | STATUS_ID | COUNTRY | STATUS_DATE | STATUS_TEXT | STATUS_CODE | | |
+-----------------------+--------------------------------------+---------+---------------------+-------------------------+-------------+ | |
| 81128409496221021918 | deed644d-ae4c-414c-9bb7-ca432663ae17 | NO | 2010-08-11 15:16:00 | Identifikasjon utg�tt | 80 | | |
| 820628409496220556985 | 419ee761-601b-4dce-8d15-6dda126aa9eb | NO | 2010-10-07 10:56:00 | Identifikasjon godkjent | 70 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *> | |
ServerName mittdomene.no | |
ServerAlias mittdomene.com | |
ServerAlias mittdomene.net | |
ServerAlias mittdomene.org | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/mittdomene.com/docs | |
<Directory /var/www/mittdomene.com/docs> | |
Options Indexes FollowSymLinks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.validator.addMethod("simplePhoneNo", function(value, element) { | |
return this.optional(element) || value.match(/[\+\d{1-3}]?[\s]?\d+/); | |
}) | |
var validator = $("#sendapplication").validate({ | |
rules : { | |
phone: { | |
required: true, | |
simplePhoneNo: true | |
}, | |
addressPostCode: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function norLottoNumbers(n) { for(;n^7;)for(var a=[],i=0,n=0;++i<37;)Math.random()<.1?a[n++]=i:0;return a } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function norLottoNumbers(n) { for(;n^7;)for(var a=[],i=0,n=0;++i<37;)Math.random()<.1?a[n++]=i:0;return a } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings({"UtilityClassWithPublicConstructor"}) | |
public final class YearMonthUtils { | |
private static final int START_YEAR = 1930; | |
private static final int END_DAY = 31; | |
private static final int MIN_AGE = 15; | |
private static I18nService i18nService; | |
private static ActionSupport actionSupport = new ActionSupport(); | |
public YearMonthUtils(I18nService i18nService) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<Long> getTaskIds(Long orgId, Long cvId) { | |
List<Long> taskIds = Lists.newArrayList(); | |
List<Task> tasks = taskDao.findTasks(orgId, cvId); | |
for(Task task : tasks) { | |
taskIds.add(task.getTaskId()); | |
} | |
return taskIds; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fizzBuzz(max): | |
for i in range(max): | |
print i%3/2*'fizz' + i%5/4*'buzz' or i+1 | |
fizzBuzz(100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { alert('Hello world'); })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
import au.com.bytecode.opencsv.CSVReader | |
import au.com.bytecode.opencsv.CSVWriter | |
import groovy.transform.Canonical | |
@Grab(group = "net.sf.opencsv", module="opencsv", version="[2.3,)") | |
class SSBPositions { | |
def getJobs() { | |
def ssbUrl = "http://www.ssb.no/emner/06/yrke/yrke.sdv" |