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
import os | |
import sys | |
import re | |
from pathlib import Path | |
# Run: python3 add_ids_in_filenames.py path_to_your_folder | |
# Behavior: Scans the folder, takes all files without an ID at the beginning | |
# consisting of 10 digits, and renames them all to add such an id to them. | |
# Ids are genrerated serially. | |
# Before renaming, checks for exact name collision not to overwrite something. |
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
// Momentum.earth active view scrapper | |
// Author: Ludvig Janiuk | |
// To have jQuery as "q" do this first: | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// And then: | |
q = jQuery; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
class SplitUnityMesh | |
{ | |
private const int MAX_VERTICES = 65500; | |
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
mynt = random.randint(0,1) | |
if ( mynt == 0 ): | |
krona=krona + 1 | |
else: | |
klave+=1 | |
# kan ersättas med | |
mynt = random.randint(0,1) |