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
import os | |
import socket | |
import jupyterlab.labapp | |
from tornado.tcpserver import TCPServer | |
from tornado.httpserver import HTTPServer | |
from notebook.transutils import trans, _ | |
__version__ = '1.0.1' | |
SYSTEMD_SOCKET_FD = 3 # Magic number ! |
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
std::string ColladaLoader::FindNameForNode( const Collada::Node* pNode) | |
{ | |
// If explicitly requested, just use the collada name. | |
if (useColladaName) | |
{ | |
if (!pNode->mName.empty()) { | |
return pNode->mName; | |
} else { | |
return format() << "$ColladaAutoName$_" << mNodeNameCounter++; | |
} |
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
<html> | |
<head> | |
<title>basic example</title> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> | |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<script type="module" src="sssa-min.js"></script> | |
</head> | |
<body> |
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 <windows.h> | |
#include <stdio.h> | |
#include <string> | |
#include <map> | |
void relative2absolute(std::string& result, const char* relativeFile) | |
{ | |
int state = 0; | |
int length = strlen(relativeFile); | |
result.reserve(length); |
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 <windows.h> | |
#include <stdio.h> | |
#include <string> | |
#include <map> | |
#pragma pack(1) | |
struct package_file | |
{ | |
unsigned int signature; | |
unsigned short version; |
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 <windows.h> | |
#include "extern/png/png.h" | |
#include <stdio.h> | |
BOOL SaveToFilePng(HBITMAP hBitmap, LPCSTR lpszFileName) | |
{ | |
BITMAP Bitmap; | |
GetObject(hBitmap, sizeof(Bitmap), (LPSTR)&Bitmap); | |
unsigned int bitmap_bytes_per_pixel = 4; | |
unsigned int bitmap_scanline_size = (((Bitmap.bmWidth * bitmap_bytes_per_pixel) + (4 - 1)) & ~(4 - 1)); |
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 <libssh/libssh.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <string> | |
#include <windows.h> | |
#include <map> | |
#include <vector> | |
#include <assert.h> |