This file has been truncated, but you can view the full file.
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
List<String> ids = [ | |
"#", | |
"Labradorite#4136", | |
"Zethos#8910", | |
"cybil.#0398", | |
"EPiQ#5973", | |
"Soffish#1439", | |
"MrClanker#1356", |
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
{(() => { | |
return ""; | |
})()} |
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
use bevy::prelude::*; | |
use bevy::window::WindowResized; | |
//Component to tag a marker | |
#[derive(Component)] | |
struct Marker; | |
fn main() { | |
App::new() | |
//add a WindowDescriptor resource. This will be used to set initial |
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
//original at: | |
//https://github.com/bevyengine/bevy/blob/main/examples/games/breakout.rs | |
use bevy::{ | |
prelude::*, | |
sprite::collide_aabb::{collide, Collision}, | |
time::FixedTimestep, | |
}; | |
//basically our FPS - 60FPS |
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
const m = `SELECT | |
medal_result.reference_id, | |
count, | |
character_activity_stats as character_activity_stats_index, | |
activity.activity_id as activity_id | |
FROM | |
medal_result | |
INNER JOIN | |
character_activity_stats on character_activity_stats.id = medal_result.character_activity_stats, | |
activity ON character_activity_stats.activity = activity.id |
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
let output = 123.456789; | |
let precision = 2; | |
let mod = Math.pow(10, precision); | |
let a = Math.round(output * mod) / mod; | |
let b = output.toFixed(2); | |
console.log(a); | |
console.log(b); |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// NOTE: CHANGE THE URL TO YOUR PROFILE FOLLOWERS PAGE | |
// @match https://www.typepad.com/profile/6p00d83429217d53ef/contacts/ | |
// @icon https://www.google.com/s2/favicons?domain=typepad.com | |
// @grant none |
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
BEGIN TRANSACTION; | |
/* found activities we havent synced details from yet */ | |
CREATE TABLE IF NOT EXISTS 'main'.'activity_id_queue' ( | |
'activity_id' INTEGER NOT NULL, | |
'character_id' TEXT NOT NULL, | |
PRIMARY KEY("character_id", "activity_id"), | |
FOREIGN KEY (character_id) | |
REFERENCES character (character_id) |
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
#[derive(Serialize, Deserialize, Debug)] | |
struct ManifestInfo { | |
version:String, | |
#[serde(rename(serialize = "url", deserialize = "mobileWorldContentPaths"), alias="url", deserialize_with = "deserialize_mobile_world_content_Paths")] | |
url:String, | |
} | |
fn deserialize_mobile_world_content_Paths<'de, D>(deserializer: D) -> Result<String, D::Error> where D: serde::de::Deserializer<'de> | |
{ |
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
#[derive(Serialize, Deserialize, Debug)] | |
struct DestinySearchResponse { | |
#[serde(rename = "Response")] | |
response: Vec<DestinyResponseMember>, | |
#[serde(rename = "ErrorCode")] | |
error_code: u32, | |
#[serde(rename = "ThrottleSeconds")] | |
throttle_seconds: u32, |
NewerOlder