Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • demetrius/netrunner
  • despair/netrunner
  • antpy/netrunner
  • dylanbaughercontact/netrunner
  • okn3/netrunner
  • geertiebear/netrunner
  • mechacrash/netrunner
  • vaartis/netrunner
  • flat/netrunner
9 results
Show changes
Showing
with 3775 additions and 92 deletions
File added
File added
No preview for this file type
File added
No preview for this file type
File added
File deleted
#!/bin/bash
mkdir netrunner-$(date +%F)-32
cd netrunner-$(date +%F)-32
# this now has the ttfs and pnm
cp -r ../../../res .
cp ../../../ca-bundle.crt .
curl https://nt-build-bot.rvx86.net/job/netrunner-winnt-i686/lastSuccessfulBuild/artifact/bin/netrunner.exe > netrunner32.exe
cd ..
zip -r -X netrunner-$(date +%F)-win32.zip netrunner-$(date +%F)-32
rm -fr netrunner-$(date +%F)-32
mkdir netrunner-$(date +%F)-64
cd netrunner-$(date +%F)-64
# this now has the ttfs and pnm
cp -r ../../../res .
cp ../../../ca-bundle.crt .
curl https://nt-build-bot.rvx86.net/job/netrunner-winnt-amd64/lastSuccessfulBuild/artifact/bin/netrunner.exe > netrunner64.exe
cd ..
zip -r -X netrunner-$(date +%F)-win64.zip netrunner-$(date +%F)-64
rm -fr netrunner-$(date +%F)-64
# https://gitgud.io/snippets/29
File moved
File moved
File moved
File moved
This diff is collapsed.
document = {
head: "",
documentElement: {},
getElementsByTagName: function(tag) {
return [];
},
querySelector: function(selector) {
return null;
},
querySelectorAll: function(selector) {
},
addEventListener: function(label, cb, overwrite) {
//
}
};
window.innerWidth=600
Date = {
now: function() {
//__netrunner_datenow();
}
}
XMLHttpRequest = {
// withCredentials:
}
......@@ -4,6 +4,6 @@ in vec4 colorPipe;
in vec2 texCoordPipe;
out vec4 colorOut;
void main() {
// colorOut = vec4(0.0, 0.0, 0.0, texture(textureIn, texCoordPipe).r); // TODO blend alpha
//colorOut = vec4(0.0, 0.0, 0.0, texture(textureIn, texCoordPipe).r); // TODO blend alpha
colorOut = vec4(colorPipe.rgb, texture(textureIn, texCoordPipe).r); // TODO blend alpha
}
#version 330
uniform mat4 transform;
layout (location = 0) in vec3 vertexIn;
layout (location = 1) in vec2 texCoordIn;
out vec2 texCoordPipe;
void main() {
gl_Position = vec4(vertexIn, 1.0);
gl_Position = transform * vec4(vertexIn, 1.0);
texCoordPipe = texCoordIn;
}
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by netrunner.rc
//
#define IDI_ICON1 102
#define IDI_ICON2 104
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 105
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
#include "StringUtils.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <algorithm>
/**
* get an extension from a filename
* @param fileName a filename string
* @return '' or a string with the found extension
*/
const std::string getFilenameExtension(std::string const& fileName) {
auto dotPos = fileName.find_last_of('.');
if (dotPos != std::string::npos && dotPos + 1 != std::string::npos) {
//std::cout << "StringUtils::getFilenameExtension - " << fileName.substr(dotPos + 1) << std::endl;
return fileName.substr(dotPos + 1);
}
return "";
}
/**
* get an document from a url
* @param url url string
* @return '' or a string with the found document
*/
const std::string getDocumentFromURL(const std::string &url) {
int slashes = 0;
for (unsigned int i = 0; i < url.length(); i++) {
if (url[i] == '/') {
slashes++;
if (slashes == 3) {
return url.substr(i, url.length() - i);
}
}
}
return "";
}
/**
* get host from a url
* @param url url string
* @return '' or a string with the found host
*/
const std::string getHostFromURL(const std::string &url) {
auto colonDoubleSlash = url.find("://");
if (colonDoubleSlash != std::string::npos) {
auto startPos = colonDoubleSlash + 3;
auto thirdSlash = url.find("/", startPos);
if (thirdSlash == std::string::npos) {
return url.substr(startPos);
}
return url.substr(startPos, thirdSlash - startPos);
}
return "";
}
/**
* get scheme from a url
* @param url url string
* @return '' or a string with the found protocol
*/
const std::string getSchemeFromURL(const std::string &url) {
auto colonDoubleSlash = url.find("://");
if (colonDoubleSlash != std::string::npos) {
return url.substr(0, colonDoubleSlash);
}
return "";
}
/**
* convert string to lowercase
* @param str string
* @return lowercased version of str
*/
const std::string toLowercase(const std::string &str) {
std::string returnString = "";
std::transform(str.begin(),
str.end(),
back_inserter(returnString),
tolower);
return returnString;
/*
std::string stringToLower(std::string s) {
std::transform(s.begin(), s.end(), s.begin(),
[](unsigned char c){ return std::tolower(c); });
return s;
*/
}