This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
using Ionic.Zip; | |
namespace niel | |
{ |
This file contains hidden or 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
function getMessages() { | |
for (var e = document['getElementsByClassName']('guilds-wrapper')[0]['getElementsByClassName']('badge'), t = 0, r = 0; r < e['length']; r++) { | |
var n = parseInt(e[r]['innerText']['replace'](/[^0-9.]/g, '')); | |
n > 0 && t++ | |
}; | |
ipcRenderer['sendToHost']('message-discord', { | |
count: t | |
}) | |
} | |
// |
This file contains hidden or 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
//Would like to have these first two lines come in as args $1 $2 | |
pre=mingw-w64-x86_64 | |
set -- toolchain freeglut freetype libpng libjpeg-turbo | |
for p in "$@"; do | |
a+=("$pre-$p"); | |
done | |
set -- "${a[@]}" | |
echo "$@" |
This file contains hidden or 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
//////////README: further @ https://github.com/Microsoft/vcpkg////////////// | |
C: | |
cd \ | |
git clone https://github.com/Microsoft/vcpkg.git | |
cd vcpkg | |
.\bootstrap-vcpkg.bat | |
.\vcpkg integrate install | |
.\vcpkg install ffmpeg:x64-windows |
This file contains hidden or 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
C:\vcpkg>bootstrap-vcpkg.bat | |
vcpkgDownloadFile : Exception calling "DownloadFile" with "2" argument(s): "Unable to | |
connect to the remote server" | |
At C:\vcpkg\scripts\fetchDependency.ps1:78 char:5 | |
+ vcpkgDownloadFile $url $downloadPath | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (:) [vcpkgDownloadFile], MethodInvocationEx | |
ception | |
+ FullyQualifiedErrorId : WebException,vcpkgDownloadFile |
This file contains hidden or 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
find_program(CCACHE_FOUND ccache) | |
if(CCACHE_FOUND) | |
add_definitions(-DCCACHE_FOUND=OFF) | |
end() |
This file contains hidden or 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
//September 21, 2018 - genBTC (GPL License) | |
#include <iostream> | |
using namespace std; | |
int main() { | |
for (int i = 1; i < 101; i++) { | |
if (i % 15 == 0) | |
cout << "FizzBuzz" << endl; | |
else if (i % 5 == 0) | |
cout << "Buzz" << endl; |
This file contains hidden or 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
def fizzBuzz(): | |
for i in xrange(1,101): | |
if (i % 15 == 0): | |
print("FizzBuzz"); | |
elif (i % 5 == 0): | |
print("Buzz"); | |
elif (i % 3 == 0): | |
print("Fizz"); | |
else: | |
print(i); |
This file contains hidden or 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
void RedirectIOToConsole() { | |
//Create a console for this application | |
AllocConsole(); | |
// Get STDOUT handle | |
HANDLE ConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE); | |
int SystemOutput = _open_osfhandle(intptr_t(ConsoleOutput), _O_TEXT); | |
FILE *COutputHandle = _fdopen(SystemOutput, "w"); |
This file contains hidden or 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://www.youtube.com/watch?v=-hPXK7BCBnY - 36C3 - Degrowth is coming - be ready to repair - english translation | |
((((((ENGLISH TRANSCRIPTION / NATIVE TRANSLATION version 0.14)))))) | |
. | |
[Video Description / Abstract (Google translate)] | |
------------------------------- | |
The discourse about "digitization" can do one thing above all: promise. Robots free us from tedious work, increases in efficiency take care of the protection of the environment and resources all by ourselves, and algorithms make everyday life easier. The lecture will show that these promises mainly play into the pocket of tech corporations and that we are heading towards ecological and social disasters thanks to the data-gathering (Indian) business models of digital capitalism. | |
Can the economy continue to grow thanks to more efficient technologies without consuming resources? Or do we not even notice in our lives, which are always full, that we are really running out of raw materials? If we very soon run out of material to build technology that f |
OlderNewer