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
#include <boost/container/stable_vector.hpp> | |
#include <boost/timer/timer.hpp> | |
#include <vector> | |
#include <cstring> | |
#include <sys/time.h> | |
#include <iostream> | |
#include <cstdlib> | |
template <typename Container> | |
void randomize (Container &container) |
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
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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
static unsigned int COVERAGE_STATISTICS_CACHE_MAGIC = 0xC0432463; | |
static GjsCoverageCacheHeader * | |
create_coverage_statistics_cache(GjsCoverage *coverage) | |
{ | |
GjsCoveragePrivate *priv = (GjsCoveragePrivate *) gjs_coverage_get_instance_private(coverage); | |
gsize allocation_len = calculate_coverage_statistics_cache_len(file_statistics_array); | |
void *allocation = g_malloc(allocation_len); | |
void *allocation_index = allocation; |
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
@parameterized.expand(_KNOWN_STYLES) | |
def test_suggest_correction_docstring(self, style): | |
"""Correct slplling errors inside docstring.""" | |
def get_replacement(): | |
self._spellcheck_lint("{s}{e}\n\"\"\"splelling mistake\"\"\")\n", | |
style) | |
exception = self.assertRaises(LinterFailure, get_replacement) | |
self.assertEqual(replacement(exception), | |
(2, |
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
game_map = list() | |
for i in range(0, 28): | |
sub = [] | |
for j in range(0, 36): | |
sub.append(False) | |
game_map.append(sub) | |
for i in range(0, 28): |
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
|00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27| | |
00 |@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@| | |
01 |@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@| | |
02 |@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@| | |
03 |@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@|@@| | |
04 |@@|..|..|..|..|..|..|..|..|..|..|..|..|@@|@@|..|..|..|..|..|..|..|..|..|..|..|..|@@| | |
05 |@@|..|@@|@@|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|@@|@@|..|@@| | |
06 |@@|..|@@|@@|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|@@|@@|..|@@| | |
07 |@@|..|@@|@@|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|..|@@|@@|@@|@@|@@|..|@@|@@|@@|@@|..|@@| | |
08 |@@|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|..|@@| |
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
smspillaz@interpol:~/Source/Compiz/dev/dev/merges/compiz/proposed/compiz.fix_1024304/build$ clang++ -std=c++11 test.cpp -o test.out | |
In file included from test.cpp:1: | |
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/memory:64: | |
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/allocator.h:48: | |
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/c++allocator.h:34: | |
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ext/new_allocator.h:110:23: error: | |
allocating an object of abstract class type 'Foo' | |
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | |
^ | |
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/alloc_traits.h:256:8: note: |
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
https://gist.github.com/smspillaz/18d703c0ac3d9ea9bc59 |
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
typedef struct _ChangeDebugModeData | |
{ | |
guint flags; | |
gboolean enabled; | |
} ChangeDebugModeData; | |
typedef void (*LockAction) (JSContext *context, | |
gpointer user_data); | |
static void |
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
static void | |
test_coverage_data_file_is_overwritten_completely(gpointer fixture_data, | |
gconstpointer user_data) | |
{ | |
GjsDebugCoverageToSingleOutputFileFixture *fixture = (GjsDebugCoverageToSingleOutputFileFixture *) fixture_data; | |
/* Write the string "existing contents" about one hundred times to the file | |
* and check that the new file does not contain any string matching it */ | |
const gchar *existing_contents = "existing_contents\n"; | |
guint i = 0; |
OlderNewer