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 React from 'react'; | |
import {Button, ScrollView, StyleSheet, Text, View} from 'react-native'; | |
export default function App() { | |
const [scrollViewOpen, setScrollViewOpen] = React.useState(false); | |
return ( | |
<View style={styles.root}> | |
<Button title="Open ScrollView" onPress={() => setScrollViewOpen(true)} /> | |
{scrollViewOpen && <ShapeViewer onClearScrollView={() => setScrollViewOpen(false)} />} | |
</View> |
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.Json; | |
using System.Text.Json.Serialization; | |
namespace jsonconverter | |
{ | |
public class PolymorphicEnumerableConverter<T> : JsonConverter<IEnumerable<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
ansiColors: | |
normal: | |
black: "#32302f" | |
blue: "#076678" | |
cyan: "#427b58" | |
green: "#79740e" | |
magenta: "#8f3f71" | |
red: "#9d0006" | |
white: "#f2e5bc" | |
yellow: "#b57614" |
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 UIKit | |
import SpriteKit | |
class NumberNode: SKNode { | |
let digitSpacing = CGFloat(5) | |
let digits: SKTextureAtlas | |
var currentValue: Int { | |
didSet { | |
updateDigit() |
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
[01:46:39] [Server thread/WARN]: [AssassinMinigame] Unable to find command assassin! | |
[01:46:39] [Server thread/ERROR]: Could not load 'plugins/AssassinMinigame.jar' in folder 'plugins' | |
org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException | |
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:739) [custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.Bukkit.reload(Bukkit.java:535) [custom.jar:git-Spigot-db6de12-18fbb24] | |
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java |
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
package tenny1028.assassin; | |
import org.bukkit.ChatColor; | |
import org.bukkit.GameMode; | |
import org.bukkit.OfflinePlayer; | |
import org.bukkit.entity.Player; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.bukkit.scoreboard.Team; | |
import tenny1028.assassin.events.PlayerEvents; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="tempBuildFile" default="default" basedir=""> | |
<description>Temporary build config for ant script</description> | |
<taskdef name="bundleapp" | |
classname="com.oracle.appbundler.AppBundlerTask" | |
classpath="" /> | |
<target name="bundle-app"> | |
<bundleapp outputdirectory="" | |
name="" | |
displayname="" |
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
public class Factors { | |
public static void main(String[] args) { | |
long x = Long.MAX_VALUE; | |
long increment = 1; | |
long totalOfFactors = 0; | |
while(true){ | |
if (x%increment==0){ | |
System.out.println(increment); | |
totalOfFactors+=increment; | |
} |