I hereby claim:
- I am devmnj on github.
- I am devmnj (https://keybase.io/devmnj) on keybase.
- I have a public key ASBneaQ1K2PbmDsm0g8_LYAgLc0zAvxCXj3ezNiNjjPlIwo
To claim this, I am signing this object:
Conda Error | |
`conda error error: argument COMMAND: invalid choice: 'activate'` | |
# solution | |
`conda init powershell` |
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser |
def loadImage(url): | |
response = requests.get(url) | |
img_bytes = BytesIO(response.content) | |
img = Image.open(img_bytes) | |
img = img.convert('L') | |
# img = img.convert('1') | |
# img = img.convert('RGB') | |
img = img.resize((28, 28), Image.NEAREST) | |
img = keras.utils.img_to_array(img) |
I hereby claim:
To claim this, I am signing this object:
public static StyleDefinitionsPart AddStylesPartToPackage2(WordprocessingDocument doc) | |
{ | |
StyleDefinitionsPart part; | |
part = doc.MainDocumentPart.AddNewPart<StyleDefinitionsPart>(); | |
Styles root = new Styles(); | |
root.Save(part); | |
return part; | |
} | |
// Create a new style with the specified styleid and stylename and add it to the specified |
var workbook = new XLWorkbook(); | |
var ws = workbook.Worksheets.Add("TRIAL"); | |
var columnFromWorksheet = ws.Column(1); | |
columnFromWorksheet.Cell(1).Value = "TRIAL BALANCE"; | |
var columnFromRange = ws.Range("A1:K2").Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right; | |
workbook.SaveAs("closedxl.xlsx"); |
using (SpreadsheetDocument document = SpreadsheetDocument.Create("somefile.xls", SpreadsheetDocumentType.Workbook)) | |
{ | |
WorkbookPart workbookPart = document.AddWorkbookPart(); | |
workbookPart.Workbook = new DocumentFormat.OpenXml.Spreadsheet.Workbook(); | |
WorksheetPart worksheetPart = workbookPart.AddNewPart<WorksheetPart>(); | |
WorkbookStylesPart sp = workbookPart.AddNewPart<WorkbookStylesPart>(); | |
sp.Stylesheet = new DocumentFormat.OpenXml.Spreadsheet.Stylesheet(); | |
Stylesheet stylesheet = sp.Stylesheet; | |
stylesheet.Fonts = new DocumentFormat.OpenXml.Spreadsheet.Fonts(); |
preview:{ | |
select:{ | |
title:'name', | |
imageUrl: 'avatar' | |
},prepare(selection){ | |
const {title,imageUrl} =selection; | |
return{ | |
title:title, | |
media:<img src={imageUrl} alt=''/> | |
} |
'use client' | |
/* eslint-disable @next/next/no-img-element */ | |
import React, { useState } from 'react' | |
import client from "../lib/sanity"; | |
export default function CommentBox(props: { post: any; }) { | |
const [name, setName] = useState('') | |
const [email, setEmail] = useState('') | |
const [comment, setComment] = useState('') |
A quick loading animation using CSS. This is taken from the dribbble shot https://dribbble.com/shots/946595-App-loader-GIF-animation
Forked from Jamie Coulter's Pen Cog loading animation.
A Pen by Karafizi Arthur on CodePen.