Skip to content

Instantly share code, notes, and snippets.

/*======================================================================================
FXAA Injector danoc1 v1.25 SETTINGS
======================================================================================*/
// TODO: Normalize values to be on a human range scale, whole numbers prefered, decimals usable for micro adjustments
// These values should have min/max limit checks included in their functions, so that the end user doesn't get crazy results
/*------------------------------------------------------------------------------
FILTER SELECTION
------------------------------------------------------------------------------*/
>>> l = [1, 2]
>>> id(l)
4299501792
>>> l += [3]
>>> l
[1, 2, 3]
>>> id(l)
4299501792
>>>
@steeve
steeve / gist:2659696
Created May 11, 2012 13:38
Cassandra stacktrace when deleting/re-creating "missing" keyspaces.
INFO 15:33:43,505 Enqueuing flush of Memtable-schema_keyspaces@1108352425(192/240 serialized/live bytes, 4 ops)
INFO 15:33:43,505 Writing Memtable-schema_keyspaces@1108352425(192/240 serialized/live bytes, 4 ops)
INFO 15:33:43,512 Completed flushing /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-36-Data.db (256 bytes)
INFO 15:33:43,513 Compacting [SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-34-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-35-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-36-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-33-Data.db')]
INFO 15:33:43,524 Compacted to [/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-37-Data.db,]. 1,498 to 730 (~48% of original) bytes for 3 keys at 0.069618MB/s. Time: 10ms.
ERRO
def iterate_on_attributes():
current = dll.ldap_first_attribute(self._l, self._message, byref(self._berElem))
while current:
yield current
current = dll.ldap_next_attribute(self._l, self._message, self._berElem)
for attrib in iterate_on_attributes():
print attrib
requirejs(files, function () {
$(document).ready(function () {
angular.bootstrap(document, ['app']);
});
});
#include <stdlib.h>
#include <stdio.h>
/*
**
*/
#define NBRA (e->a)
#define NBRB (e->b)
#define SIZEA (e->sizea)
#define SIZEB (e->sizeb)
function recognitionResult(event) {
for (var i = event.resultIndex; i < event.results.length; ++i) {
if (event.results[i].isFinal) {
connection.send(event.results[i][0].transcript);
}
}
}
to =>
@steeve
steeve / Dockerfile
Last active December 23, 2015 05:29
ADD start.sh /
RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]
diff -rupN swig-2.0.11/Doc/Manual/Go.html swig-2.0.11.tmp/Doc/Manual/Go.html
--- swig-2.0.11/Doc/Manual/Go.html 2013-09-15 23:06:10 +0200
+++ swig-2.0.11.tmp/Doc/Manual/Go.html 2013-09-25 09:42:11 +0200
@@ -139,6 +139,10 @@ swig -go -help
or <tt>int64</tt>. The &lt;s&gt; argument should be 32 or 64.</td>
</tr>
+<tr>
+<td>-windows</td>
+<td>Generate code for Windows.</td>
@steeve
steeve / test-int64.go
Created October 7, 2013 18:13
When run on Windows/386, outputs values like "4603183328" instead of "1".
package main
// #include <stdio.h>
// #include <stdint.h>
// int64_t get(int n)
// {
// return 1;
// }
import "C"