-
2121541·text·866 B·2012-02-25 18:19 UTC
//the main body of my program
var app = {};
app.index = function () {
S.app.use('Template');
content = S.template('<p>place: <%= city %></p>', {
city: 'oslo'
});
this.append($(content)
-
2121540·text·2.2 KB·2012-02-25 18:19 UTC
Thank you for your email expressing concerns about the recent Elections Canada report. This report, describing the use of illegal “robo-calls” during last federal election, has traced these calls bac
-
2121537·text·207 B·2012-02-25 18:13 UTC
addEvent("showNameTag", true)
addEventHandler("showNameTag", localPlayer, function()
addEventHandler("onClientRender", localPlayer, PlayerNameTags)
end)
function PlayerNameTags()
...
-
2121535·cpp·426 B·2012-02-25 17:54 UTC
union X {
int x;
X(int x):x(x) { }
virtual int y() { return x; }
};
#include <iostream>
int main() {
X z = 42;
(&z)->y();
}
/* gcc:
$ g++ x.cc
x.cc:5:17: error: function
-
2121534·text·302 B·2012-02-25 17:51 UTC
var number = prompt("Guess what number I'm thinking of between 1 and 10!");
if(number === "7") {
console.log("You got it!");
// Change the following line.
} else if (number==="6") {
console.l
-
2121533·text·758 B·2012-02-25 17:48 UTC
java.lang.VerifyError: (class: mod_IC2AdvancedMachines, method: getGuiFor signature: (Lvi;ILbq;)Lxe;) Wrong return type in function
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lan
-
2121531·text·683 B·2012-02-25 17:32 UTC
java.lang.RuntimeException: RedPowerCore: BlockID 254 exists, autoAssign is disabled.
at forge.MinecraftForge.killMinecraft(MinecraftForge.java:366)
at eloraam.core.Config.getBlockID(Config.java:1
-
2121530·python·762 B·2012-02-25 17:28 UTC
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
def bubblesort(array):
hadChanges = True
while hadChanges:
hadChanges = False
for i in range(len(array)
-
2121527·csharp·162 B·2012-02-25 16:39 UTC
foreach ( Surtidor surt in listaSurtidores)
{
surt.EnviarPrecios(tablaMangueras,listaSurtidores);
}
-
2121524·text·747 B·2012-02-25 16:19 UTC
config.yml
# Config
Server: irc.swiftirc.net # It's recommended to use hub.* for
some reason
Port: 6667 # SSL ports do not work as of yet.
Nick: rubydevbot # Your botnick
NickPass: changem
-
2121521·text·355 B·2012-02-25 15:30 UTC
ysql --pid-file=/home/mysql/test.pid --log-error=/home/mysql/test.errdir=/home/m
The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable
Please do a cd to the mysql installation
-
2121520·text·357 B·2012-02-25 15:29 UTC
ysql --pid-file=/home/mysql/test.pid --log-error=/home/mysql/test.errdir=/home/m
The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable
Please do a cd to the mysql installation
-
2121519·text·357 B·2012-02-25 15:29 UTC
ysql --pid-file=/home/mysql/test.pid --log-error=/home/mysql/test.errdir=/home/m
The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable
Please do a cd to the mysql installation
-
2121517·text·1.4 KB·2012-02-25 15:11 UTC
#!/bin/sh
DB_DIR=/usr/local/mysql/data
PIDFILE=${DB_DIR}/`/bin/hostname -s`.pid
PROGNAME=mysqld
# Source function library
. /usr/local/etc/rc.d/functions
case "$1" in
start)
-
2121516·text·1.6 KB·2012-02-25 15:05 UTC
<style>
body {font-size: 11px;
font-family: verdana;
color: #FFFFFF;
background-color: #000000}
i{font-family: georgia; color: 555555}
h1
{font: normal 14px verdana;
text-transform:upper
-
2121514·text·933 B·2012-02-25 15:00 UTC
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cstring>
using namespace std;
#define MAX 15
const int inf = 2000000000;
int TC;
int x[MAX],y[MAX];
-
2121513·text·401 B·2012-02-25 14:50 UTC
A - большой вектор чиселок
B - вектор искомых
N - окрестность
A' = bitset (где номер бита это цифра из A)
B' = bitset (для каждого b (число из B) включаем битики для цифр [b-N, b+n])
C = A' & B
-
2121512·text·4.2 KB·2012-02-25 14:43 UTC
#
# "$Id: makefile,v 1.6 Selznick$"
# Makefile for Seiko Instruments USA Inc. Smart Label Printer Driver
#
# Copyright yyyy-YYYY by Easy Software Products, all rights
# reserved.
#
# Th
-
2121511·text·48.0 KB·2012-02-25 14:24 UTC
-
2121510·text·14.9 KB·2012-02-25 14:18 UTC
2012-02-25 14:15:54 [INFO] Starting minecraft server version 1.1
2012-02-25 14:15:54 [INFO] Loading properties
2012-02-25 14:15:54 [INFO] Starting Minecraft server on 5.163.133.247:25569
2012-02-25