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
# Do not excute the script directly. It is just for demonstration. | |
# If you followed the documentation and got the errors below, please take a look at this guide. | |
# Color management: using fallback mode for management | |
# bpy: couldnt find 'scripts/modules', blender probably wont start. | |
# Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly. | |
# ImportError: No module named 'bpy_types' | |
# ImportError: No module named 'bpy_types' | |
# pyrna_srna_ExternalType: failed to find 'bpy_types' module | |
# ImportError: No module named 'bpy_types' |
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
document.createElement('script');script.src='https://secure.jonatkins.com/iitc/release/total-conversion-build.user.js';document.body.appendChild(script);script1=document.createElement('script');script1.src='https://secure.jonatkins.com/iitc/release/plugins/player-tracker.user.js';document.body.appendChild(script1);script2=document.createElement('script');script2.src='https://secure.jonatkins.com/iitc/release/plugins/portal-highlighter-high-level.user.js';document.body.appendChild(script2);script3=document.createElement('script');script3.src='https://secure.jonatkins.com/iitc/release/plugins/fly-links.user.js';document.body.appendChild(script3);script4=document.createElement('script');script4.src='https://secure.jonatkins.com/iitc/release/plugins/portal-names.user.js';document.body.appendChild(script4);script5=document.createElement('script');script5.src='https://secure.jonatkins.com/iitc/release/plugins/draw-tools.user.js';document.body.appendChild(script5); |
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 <memory> | |
#include <iostream> | |
struct A { | |
int x; | |
}; | |
typedef std::unique_ptr<A> APtr; | |
int main() { |
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 <iostream> | |
struct A {} ; | |
struct B: public A {}; | |
template<class T> | |
struct C { | |
static_assert(std::is_base_of<A, T>::value, "Wrong class parameter"); | |
}; |
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 <iostream> | |
#include <vector> | |
using namespace std; | |
struct S { | |
vector<int> a; | |
S() { a.clear(); } | |
S(const S& toher) = default; | |
}; |
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 <iostream> | |
#include <vector> | |
#include <utility> | |
using namespace std; | |
void PrintVec2D(vector<vector<int>> &d) { | |
for (int i = 0; i < d.size(); i++) { | |
cout << "subvec " << i << ": "; | |
for (int j = 0; j < d[i].size(); j++) | |
cout << d[i][j] << " "; |
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 <iostream> | |
#include <map> | |
using namespace std; | |
struct S{ | |
int data; | |
float f; | |
S(int d, float x): data(d), f(x) {} | |
S(): data(0), f(0) {} | |
}; |
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 <iostream> | |
using namespace std; | |
struct B { | |
int a, b; | |
B(): a(0), b(0) {} | |
B(const B &other) = default; | |
}; | |
int main() { |
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 <iostream> | |
#include <vector> | |
#include <memory> | |
using namespace std; | |
class Base { | |
public: | |
Base(int x): flag(x) {} | |
int flag; | |
void say() { cout << "I'm " << flag << endl; } |
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
__author__ = "zxk" | |
from bulbs.titan import Graph, Config, TITAN_URI | |
from bulbs.model import Node, Relationship | |
from bulbs.property import String, Integer | |
from bulbs.config import DEBUG | |
import math | |
import random | |
from termcolor import colored |
NewerOlder