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
var BrowserDetect = { | |
init: function() { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function(data) { | |
for (var i = 0; i < data.length; i++) { | |
var dataString = data[i].string; | |
var dataProp = data[i].prop; |
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
# -*- coding: utf-8 -*- | |
import io | |
import requests | |
from bs4 import NavigableString, BeautifulSoup | |
from docx import Document as DocxDocument | |
from docx.enum.text import WD_ALIGN_PARAGRAPH | |
from docx.shared import Cm, Pt, Mm | |
from docx.image.exceptions import UnrecognizedImageError | |
from lxml import etree |
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
#!/bin/sh | |
set -euo pipefail | |
# Number of CPU threads to use for building | |
# Use `./godot_mingw.sh <number of threads>` to specify | |
THREADS=$1 | |
# Godot Git clone path | |
GODOT_PATH="$HOME/Documents/Git/godotengine/godot" |
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
@ECHO OFF | |
set threads=%NUMBER_OF_PROCESSORS% | |
call scons platform=android tools=no target=release_debug verbose=no warnings=no progress=no -j%threads% | |
call scons platform=android tools=no target=release verbose=no warnings=no progress=no -j%threads% | |
cd platform\android\java\ | |
call gradlew build |
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
:: This script must be run from a Windows system with the Emscripten SDK | |
:: installed and configured. 7-Zip and MinGW also need to be installed. | |
:: Place this script at the root of your Godot Git clone. | |
:: CC0 1.0 Universal | |
set threads=%NUMBER_OF_PROCESSORS% | |
:: Set MinGW path | |
set PATH=%PROGRAMFILES%\mingw-w64\x86_64-6.2.0-posix-seh-rt_v5-rev0\mingw64\bin\;%PATH% |
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
#!/bin/sh -x | |
# This script compiles Godot for GNU/Linux in 64-bit. | |
# Place this script at the root of your Godot Git clone. | |
# CC0 1.0 Universal | |
# Build 64-bit Godot for GNU/Linux desktop, in debug and release mode | |
scons p=x11 -j$(nproc) verbose=no tools=yes target=release_debug openssl=builtin | |
scons p=x11 -j$(nproc) verbose=no tools=no target=release_debug openssl=builtin |
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
#!/bin/bash | |
# Copyright (c) 2015 Calinou | |
# CC0 1.0 Universal | |
# <https://creativecommons.org/publicdomain/zero/1.0/> | |
update() { | |
for d in "$@"; do | |
test -d "$d" -a \! -L "$d" || continue | |
cd "$d" |
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
#!/bin/bash | |
# Copyright (c) 2015 Calinou | |
# CC0 1.0 Universal | |
# <https://creativecommons.org/publicdomain/zero/1.0/> | |
update() { | |
for d in "$@"; do | |
test -d "$d" -a \! -L "$d" || continue | |
cd "$d" |
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
#! /usr/bin/env python | |
from gimpfu import * | |
import commands | |
import glob | |
import os | |
import string | |
import subprocess | |
suffixes = (['diffuse', '_d'], ['specular', '_s'], ['normal', '_n'], ['height', '_h'], \ |
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
extends Camera | |
var _duration = 0.0 | |
var _period_in_ms = 0.0 | |
var _amplitude = 0.0 | |
var _timer = 0.0 | |
var _last_shook_timer = 0 | |
var _previous_x = 0.0 | |
var _previous_z = 0.0 |
OlderNewer