This file contains 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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains 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 { useEffect, useRef, useState } from 'react'; | |
// This hook receives three parameters: | |
// storageKey: This is the name of our storage that gets used when we retrieve/save our persistent data. | |
// ttl (seconds): How long it should be kept in browser storage | |
// initialState: This is our default value, but only if the store doesn't exist, otherwise it gets overwritten by the store. | |
// Example: | |
// Store a state that can be any or null and keep it cached for 15 minutes. | |
// [state, setState] = usePersistentState<any | null>("project.key", 15 * 60, null); |
This file contains 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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains 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
from gutenberg_cleaner import * | |
import getopt | |
import sys | |
import os | |
from pathlib import Path | |
argumentList = sys.argv[1:] | |
options = "hi:o:s" | |
long_options = ["help", "input", "output", "strip"] |
This file contains 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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains 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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains 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 UnityEngine; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEditor; | |
public class IncrementBuildNumber : IPreprocessBuildWithReport { | |
public int callbackOrder { get { return 0; } } // Part of the IPreprocessBuildWithReport interface | |
public void OnPreprocessBuild(BuildReport report) { | |
if (report.summary.platform == BuildTarget.iOS) { |
This file contains 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/* Camera usually uses screen height as their reference for orthographic size. | |
This script makes it scale with width instead. | |
*/ | |
public class CorrectAspectRatio : MonoBehaviour { |
This file contains 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
// | |
// AutocompleteView.swift | |
// | |
// Originally created by Daniel Weber on 9/28/14. | |
// Copyright (c) 2014 Null Creature. All rights reserved. | |
// Ported to Swift by Martin Pichlmair 2018 | |
// | |
import Cocoa |
This file contains 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
// | |
// SyntaxHighlighter.swift | |
// CardsCardsCards | |
// | |
// Created by Martin Pichlmair on 12/10/2018. | |
// | |
// Based on https://raw.githubusercontent.com/kuyawa/Macaw/master/Macaw/Macaw.swift | |
import Cocoa |
NewerOlder