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 com.Start.MobileStart | |
{ | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.display.StageOrientation; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.system.Capabilities; | |
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
//https://github.com/Qix-/color-convert | |
var convert = require('color-convert'); | |
//https://github.com/zschuessler/DeltaE | |
var DeltaE = require('delta-e'); | |
function dist_hex(hex1, hex2){ | |
var lab1= convert.hex.lab.raw(hex1); | |
var lab2= convert.hex.lab.raw(hex2); | |
return DeltaE.getDeltaE00( clean_lab(lab1), clean_lab(lab2) ); | |
} |
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 (c) 2010-2015 Giulia Alfonsi <[email protected]> | |
Modified work Copyright 2017 Andy Woods | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following |
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
export default function interleave(arr1, arr2){ | |
"use strict"; | |
let combined = [] | |
let arr1_len = arr1.length | |
let arr2_len = arr2.length | |
while(arr1_len>0 || arr2_len >0){ | |
if(arr1_len>0){ | |
combined.push(arr1.shift()) | |
arr1_len-- | |
} |
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
//all complete example sentences from http://kermitproject.org/utf8.html | |
//UTF-8 Sampler / The Kermit Project / Columbia University / [email protected] | |
//@AndyTWoods created below. | |
//eg mutateWords({a:'abc',b:'def'}) returning eg {a:'οσa',b:'ᚔकाλ'} | |
var mutateWords = function(obj, preserve_length) { | |
if(!preserve_length) preserve_length = true | |
var many_languages_example = { |
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
FOR /d /r . %%d IN (migrations) DO @IF EXIST "%%d\0*.py" del "%%d\0*.py" |
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
# step 1, create a new security group and associate it with your existing RDS, alongside existing SGs (modify your DB instance to do this). | |
# step 2, add profile and security_group_id info below. | |
# step 3, python add_homeIP_to_RDS_securitygroup.py | |
import boto3 | |
from botocore.exceptions import ClientError | |
import requests | |
profile = "xxxxx" | |
security_group_id = "sg-xxxxxxxxxxxxxxx" |
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
// instantiating the expansion panel with the below. Note the 500ms delay then adding another item. | |
// body: (){ | |
// List<MinimalModel> items = [MinimalModel(),MinimalModel()]; | |
// | |
// Timer(Duration(milliseconds: 500), (){ | |
// items.add(MinimalModel()); //should be wrapped with setState | |
// }); | |
// | |
// return ExpansionPanelIssue(items); | |
// }() |
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
# MIT License | |
# | |
# Copyright (c) 2019 Andy Thomas Woods | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
OlderNewer