Skip to content

Instantly share code, notes, and snippets.

View jtaki's full-sized avatar

Jeff Takiguchi jtaki

  • Honolulu, HI / San Francisco, CA
View GitHub Profile
{
"name": "NEwsletter color palette",
"dataColors": [
"#176175",
"#619E7D",
"#DE594A",
"#FACBCC",
"#C6E8EC",
"#EDD8C2",
"#86BCAC",
Date Table =
VAR FirstFiscalMonth = 7 -- First month of the fiscal year
VAR FirstDayOfWeek = 0 -- 0 = Sunday, 1 = Monday, ...
VAR FirstDate = MIN ( 'All User Stories and Bugs'[Closed Date] )
VAR LastDate = MAX ( 'All User Stories and Bugs'[Closed Date] )
VAR FirstFiscalYear = -- Customizes the first fiscal year to use
YEAR ( FirstDate )
+ 1 * ( MONTH ( FirstDate ) >= FirstFiscalMonth && FirstFiscalMonth > 1)
VAR LastFiscalYear = -- Customizes the last fiscal year to use
YEAR ( LastSalesDate )
@jtaki
jtaki / drinks.js
Last active May 7, 2022 01:53
weird api parsing
const response = {
"drinks": [
{
"idDrink": "11007",
"strDrink": "Margarita",
"strDrinkAlternate": null,
"strTags": "IBA,ContemporaryClassic",
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": "Contemporary Classics",
@jtaki
jtaki / wallpaper.ps1
Created January 30, 2020 03:04
change desktop wallpaper on windows 10
$url = 'https://www.windowscentral.com/sites/wpcentral.com/files/styles/w830/public/field/image/2016/06/xpbliss_7.jpg'
$imgpath = "C:\Users\$env:UserName\Downloads\wallpaper123.jpg"
Invoke-WebRequest $url -OutFile $imgpath
Function Set-WallPaper($Value)
{
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
rundll32.exe user32.dll, UpdatePerUserSystemParameters
}
var Records = React.createClass({
getInitialState: function(){
return {
records: this.props.data
}
},
getDefaultProps: function(){
return {
records: []
}