This file contains 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
open System | |
let dd = (DateTime.Now - DateTime.Parse("12/09/2012")).Days | |
let oneday = 7.7 / Convert.ToDouble(dd) | |
let in10gb = Convert.ToInt32( Math.Round (10.0 * 1024.0 / oneday) ) | |
let years = Convert.ToInt32( Math.Round (float in10gb / 365.0) ) | |
let months = Convert.ToInt32( Math.Round (float (in10gb - years * 365) / 30.0) ) | |
let days = | |
let d = in10gb - years * 365 - months * 30 |
This file contains 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
>>equery d boost ~/ :( | |
* These packages depend on boost: | |
app-misc/strigi-0.7.7-r1 (dev-libs/boost) | |
app-office/akonadi-server-1.8.0 (dev-libs/boost) | |
dev-util/kdevplatform-9999 (dev-libs/boost) | |
kde-base/kdepimlibs-4.9.2 (>=dev-libs/boost-1.35.0-r5) | |
kde-base/plasma-workspace-4.9.2 (rss ? dev-libs/boost) | |
media-gfx/exiv2-0.23 (contrib ? >=dev-libs/boost-1.37) | |
sys-block/thin-provisioning-tools-0.1.5-r1 (dev-libs/boost) |
This file contains 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
[<AllowNullLiteral>] | |
type SQLite() = | |
let dbexist = File.Exists(NSettings.dbpath) | |
let connSetting = sprintf "Data Source=%s;Version=3;New=%s;Compress=True;" | |
<| NSettings.dbpath | |
<| if (dbexist) then "False" else "True" | |
let openConn() = | |
let conn = new SQLiteConnection(connSetting) | |
conn.Open() | |
conn :> IDbConnection |
This file contains 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
>>emerge -avuDN world ~/ :) | |
These are the packages that would be merged, in order: | |
Calculating dependencies... done! | |
[ebuild U ] dev-util/boost-build-1.51.0 [1.49.0] USE="-examples -python {-test%}" 49,621 kB | |
[ebuild U ] dev-libs/boost-1.51.0-r1 [1.49.0-r1] USE="-debug -doc -icu -mpi -python -static-libs -tools (-eselect%*) (-test%)" 0 kB | |
[uninstall ] app-admin/eselect-boost-0.4 | |
[blocks b ] app-admin/eselect-boost ("app-admin/eselect-boost" is blocking dev-libs/boost-1.51.0-r1) | |
[ebuild U ] net-libs/gnutls-3.1.3 [2.12.20] USE="cxx nls zlib -dane% -doc -examples -guile -pkcs11 -static-libs {-test} (-bindist%) (-lzo%) (-nettle%*)" 4,777 kB |
This file contains 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
byte[] cmd = { 0x0F, 0xB1 }; | |
byte [] luas = Encoding.ASCII.GetBytes(luaTextBox.Text); | |
int newSize = cmd.Length + luas.Length; | |
using (var ms = new MemoryStream(new byte[newSize], 0, newSize, true, true)) { | |
ms.Write(cmd, 0, cmd.Length); | |
ms.Write(luas, 0, luas.Length); | |
byte[] merged = ms.GetBuffer(); | |
Core.ncon.Send(merged); | |
} | |
} |
This file contains 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
byte[] cmd = { 0x0F, 0xB1 }; | |
byte[] luas = Encoding.ASCII.GetBytes(luaTextBox.Text); | |
int newSize = cmd.Length + luas.Length; | |
using (var ms = new MemoryStream(new byte[newSize], 0, newSize, true, true)) { | |
ms.Write(cmd, 0, cmd.Length); | |
ms.Write(luas, 0, luas.Length); | |
byte[] merged = ms.GetBuffer(); | |
Core.ncon.Send(merged); |
This file contains 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 void Invoker(object sender, EventArgs e) { | |
this.Invoke(new MethodInvoker(delegate(){ | |
this.ProcessData(null, null); | |
})); | |
} |
This file contains 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
///<Summary> | |
///Load list of config files | |
///</Summary> | |
case 0xB0: { | |
unsigned char bytes[] = { 0x0A, 0xB0 }; | |
LString luafile; | |
LBytes lselect = (message.extract(2, sizeof(int))); | |
int lsel = 0; | |
memcpy(&lsel, lselect.ptr(), sizeof(int)); | |
cout << lsel << " "; |
This file contains 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
==================================================================== | |
sync: Global repositories synchronizer v.0.2 | |
==================================================================== | |
------ repository: /home/nen/contrib/portage | |
Untracked: [] | |
New: [] | |
Modified: [] | |
From github.com:Cynede/portage | |
* branch master -> FETCH_HEAD | |
From git://git.overlays.gentoo.org/proj/portage |
This file contains 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
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI="4" | |
inherit mono eutils multilib git-2 | |
DESCRIPTION="A hybrid programming language for .NET / Mono platforms" | |
HOMEPAGE="http://www.nemerle.org/" | |
SRC_URI="" |
OlderNewer