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
| by_counter: { | |
| map: function(doc) { | |
| if (' hopur' in doc && | |
| ' dags' in doc) { | |
| emit([doc[' hopur'],doc[' dags']],[doc['kennitala'], [[doc[' teljari'], doc[' gildi']]]]) | |
| } | |
| } | |
| } |
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 show_cost() { | |
| $("div#laun").empty(); | |
| $db.view("Siggi/by_counter", { | |
| success: function(data) { | |
| for (i in data.rows) { | |
| wage = 1089.4; | |
| hours = data.rows[i].value; | |
| hours = hours.toString().split(','); | |
| hours = parseFloat(hours[2]); | |
| counter = hours[1]; |
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
| var endkey_var = endkey_var[0] + endkey_var[1] + brainfart |
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 show_cost() { | |
| var endkey_numbers = document.forms["selectThing"]["dags"].value.toString().split('-'); | |
| var endkey_math = parseFloat(endkey_numbers[2]); | |
| var endkey_math = endkey_math + 1; | |
| var endkey_numbers = endkey_numbers[0] + '-' + endkey_numbers[1] + '-' + pad(endkey_math, 2); | |
| var startkey_var = [document.forms["selectThing"]["hopur"].value.toString(), document.forms["selectThing"]["dags"].value.toString()]; | |
| var endkey_var = [document.forms["selectThing"]["hopur"].value.toString(), endkey_numbers]; | |
| var ssl; | |
| $(".acc_total").empty(); |
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
| $(callbackfunc(arg){ | |
| var two = 2 | |
| return two + arg}); | |
| $function() { | |
| var one = 1 | |
| callbackfunc(one) | |
| }; |
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 show_cost(){ | |
| var by_counter = $db.view("Siggi/by_counter", {startkey: startkey_var, endkey: endkey_var,}); | |
| by_counter.success(do_math(data) { | |
| for (i in data.rows) { | |
| hours = data.rows[i].value; | |
| hours = hours.toString().split(','); | |
| counter = hours[1]; | |
| value = parseFloat(hours[2]); | |
| ssl = hours[0]; | |
| by_ssl(i) |
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
| $db.view("Siggi/by_ssl_wage", { | |
| key: ssl, | |
| success: function(data1) { | |
| wage = data1.rows[0].value; |
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 OnPluginStart() | |
| { | |
| gSocket = SocketCreate(SOCKET_UDP, OnSocketError); | |
| SocketConnect(gSocket, OnSocketConnect, OnSocketReceive, OnSocketDisconnect, HOSTNAME, PORT); | |
| HookEvent("round_end", OnRoundEndCmd); | |
| } |
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
| socket.on('updatechat', function(username, data) { | |
| $('#conversation').append('<b>' + username + ': </b> ' + data + '<br>'); | |
| $("#conversation").scrollTop($("#conversation")[0].scrollHeight); | |
| }); |
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
| smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.9.2-1-ARCH] (local build) | |
| Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org | |
| === START OF INFORMATION SECTION === | |
| Model Family: Seagate Barracuda 7200.11 | |
| Device Model: ST31500341AS | |
| Serial Number: 9VS32XMG | |
| LU WWN Device Id: 5 000c50 01a04b835 | |
| Firmware Version: CC1H | |
| User Capacity: 1.500.301.910.016 bytes [1,50 TB] |