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
#[derive(Serialize, Deserialize, Debug)] | |
struct DestinySearchResponse { | |
#[serde(rename = "Response")] | |
response: Vec<DestinyResponseMember>, | |
#[serde(rename = "ErrorCode")] | |
error_code: u32, | |
#[serde(rename = "ThrottleSeconds")] | |
throttle_seconds: u32, |
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
//Copyright 2019 Mike Chambers | |
//Released under an MIT License | |
//https://opensource.org/licenses/MIT | |
//usage : dart glory.dart platform[xbox|psn] gamertag | |
//example : dart glory.dart xbox mesh | |
import 'dart:convert'; | |
import 'dart:io'; |
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 ctypes | |
hash = ctypes.c_uint32(-1491684358).value | |
print(hash) |
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
void main() { | |
BigInt id = BigInt.from(-1491684358).toUnsigned(32); | |
print(id); | |
} |
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
//Just add to your Atom snippets file via the | |
//Menu : Atom -> Snippets | |
// | |
//To use, just type "get" in your .js file | |
//and git TAB | |
'.source.js': | |
'JavaScript Getter / Setter': | |
'prefix': 'get' | |
'body': """ |
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
/* | |
Created by Mike Chambers | |
Copyright 2018 | |
Released under an MIT License | |
https://github.com/mikechambers | |
ES6 JavaScript module and class that proxies, | |
captures and batches all canvas context 2d api |
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
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
//http://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon | |
Point getCentroidOfPolygon(Point[] points) { | |
float a = 0.0; | |
int len = points.length; | |
Point p0; | |
Point p1; | |
float _x = 0.0; | |
float _y = 0.0; | |
for(int i = 0; i < len; i++){ |
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
/*jslint vars: true, nomen: true, plusplus: true, continue:true, forin:true */ | |
/*global atob, btoa, ArrayBuffer, Uint8Array, Blob */ | |
(function () { | |
"use strict"; | |
var FileDownloader = function (prefix) { | |
this.suffix = Date.now(); | |
this.prefix = prefix; | |
}; |
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 getColorName = function () { | |
return CCweb.models.theme.attributes.name; | |
}; | |
var getColors = function () { | |
return CCweb.models.theme.attributes._hexList; | |
} | |
var formatColorsIntoCode = function() { | |
var colors = getColors(); |