Skip to content

Instantly share code, notes, and snippets.

genBTC genbtc

Block or report user

Report or block genbtc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@genbtc
genbtc / fizzBuzz.py
Created Sep 21, 2018
FizzBuzz test implementation done in Python (Fizz Buzz)
View fizzBuzz.py
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);
@genbtc
genbtc / fizzbuzz.cpp
Created Sep 21, 2018
FizzBuzz test implementation done in C++
View fizzbuzz.cpp
//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;
View CCACHE disable CmakeLists.txt mod
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
add_definitions(-DCCACHE_FOUND=OFF)
end()
View gist:1012b8a92cb6583cdc824eb315697d52
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
@genbtc
genbtc / ffmpeg-vcpkg-instructions
Created Dec 25, 2017
How to install ffmpeg through VCPKG
View ffmpeg-vcpkg-instructions
//////////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
@genbtc
genbtc / oneliner.bash
Created Dec 10, 2017
bash script for prefix append
View oneliner.bash
//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 "$@"
@genbtc
genbtc / discord.js
Created May 10, 2017
Franz modified discord.js to load BetterDiscord mod script properly (not intended to be run inside a sandboxed WebGuest window in electron
View discord.js
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
})
}
//
View gist:9a6cd4076c260549ed7b
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using Ionic.Zip;
namespace niel
{
You can’t perform that action at this time.