ISS:2020美国程序员薪资报告(英文)

Igotintothehabitofdumpingquickblogpostideasintoissuesonmyblog’srepo.It’saconvenientplacetoiterateonthemandsharewithfriendsforfeedbackbeforeactuallypublishingonmyblogpost.

Thedraftskeepaccumulating,howdoItrickmyselfintopublishingmore?Perhapsbyreducingtheeffortrequiredforthenextstep?Let’sdoit!

Architecture

Myblogisstaticallygeneratedusing?Hugo,the?codeishostedonGithub,thenwhenapullrequestcomesinitisbuilt,previewed,andpublishedonmergeby?Netlify.

国家税务总局:试点数字人民币缴纳税费功能,今年共缴纳税费1.2万笔、259亿元:金色财经报道,国家税务总局纳税服务司司长沈新国6月14日在国务院政策例行吹风会上表示,税务部门提速税费智能办理,打造便捷高效能的税收营商环境。拓展非接触事项范围,试点增值税留抵退税“智能预填”、出口退税“免填报”等功能。目前已实现96%的税费事项、99%的纳税申报可网上办理,全国社保缴费“网上办”“掌上办”业务量占比达95%以上。试点数字人民币缴纳税费功能,今年共缴纳税费1.2万笔、259亿元。创新征纳互动服务,通过智能应答、三方视频等,辅导纳税人解决线上办税缴费问题,今年以来提供互动服务148万次。(中国网)[2023/6/14 21:36:43]

TheblogpostdraftsarepostedasGithubissues,sothereisacleargap:HowdoweconvertissuesintopullrequestsforNetlify?EnterGithubActions!

GithubAction:IssuetoPullRequest

数据:本周初特朗普NFT系列日销售额暴涨近800%:1月20日消息,CryptoSlam数据显示,从周二到周三,美国前总统特朗普发行的首个NFT系列“Donald Trump Digital Trading Card”的日销售额增长了近800%,从周二的约3.4万美元跃升至昨天的30.6万美元以上。截至发稿,该系列24小时销售额约为16.7万美元,跌幅达62.1%。然而今天上午,其24小时交易量一度上涨1900%。

虽然交易活动突然激增没有具体原因,但Twitter上的一些加密人士认为,需求的增长与一篇报道有关,即特朗普计划回归主流社交媒体网络。他此前因煽动1月6日对美国国会大厦的袭击而被Facebook和Twitter封禁。(Decrypt)[2023/1/20 11:23:19]

My?fullworkflowliveshere?ifwewanttojumpahead,butlet’sbreakdownthebroadstrokes.

Idecidedtotriggerthepublishingprocessonceanissueislabelledwith‘publish’,solet’sstartwiththat:

知情人士:加密金融公司Galaxy Digital计划裁员至少20%:11月1日消息,据CoinDesk援引知情人士报道,由Michael Novogratz经营的专注于加密货币的金融服务公司Galaxy Digital (GLXY) 计划裁员至少20%的全球员工。Galaxy 8月份报告第二季度净亏损5.547亿美元,是去年同期亏损的三倍多。公司管理资产较第一季度下降40%。该公司将于11月9日(星期三)开市前公布第三季度业绩。Galaxy股票在过去一年下跌了80%。[2022/11/1 12:06:11]

name:?Publish?post?from?issue??on:??issues:??types:???jobs:??build:??if:?${{?github.event.label.name?==?'publish'?}}??runs-on:?ubuntu-latest??steps:??...

Nextupwewanttospecifythesteps,firstthingistocheckouttherepositoryintotheaction’senvironment:

DAO薪酬支付系统Utopia在Optimism上线:6月23日消息,DAO薪酬支付系统Utopia宣布在Optimism上线,OptimismDAO可以在Utopia上创建经常性和一次性付款。Utopia将在7月增加记账功能,允许OptimismDAO对其所有DAO交易进行分类和分析。6月初,Utopia宣布完成2300万美元A轮融资,Paradigm领投,Kindred Ventures、Circle Ventures、Gusto、Coinbase Ventures、Infinity VenturesCrypto、Distributed Global等参投。[2022/6/23 1:26:36]

?-?uses:?actions/checkout}??POST_BODY:?${{?github.event.issue.body?}}??run:?|???????????cat?>?"content/posts/${POST_TITLE}.md"?<<?EOF??${POST_BODY}??EOF

Thisshovesthebodyoftheissue,whichisalreadymarkdown,intoamarkdownfilenamedbasedonthetitleoftheissue.Thisisagoodplacetoaddfrontmatter,orslugifythetitle,orwhateverelseyourblogsetuprequires.

Euler Finance完成3200万美元融资,Haun Ventures领投:金色财经消息,基于以太坊的借贷协议Euler Finance完成3200万美元融资,Haun Ventures领投,Variant、FTX Ventures和Jump Crypto等参投。Euler表示,将于今年晚些时候推出DAO,使用户能够对Euler的开发和运营进行治理,并决定如何使用其社区金库。(TheBlock)[2022/6/7 4:09:01]

Runningthepayloadthroughenvironmentvariableshelpswithnotneedingtoescapevariouscharacterslike`.

Andfinally,wemakethepullrequestusingPeterEvan’screate-pull-requestactionwhichmakesthissupereasy:

?-?name:?Create?Pull?Request??uses:?peter-evans/create-pull-request}"??body:?|?????????????Automagically?sprouted?for?publishing.??Merging?will?publish?to:?https://shazow.net/posts/${{?github.event.issue.title?}}??Closes?#${{?github.event.issue.number?}}??reviewers:?${{?github.repository_owner?}}??commit-message:?"post:?${{?github.event.issue.title?}}"

Result

Whenmyblogpostdraftisready,IaddthetagandtheGithubactiontakesitaway,creatingapullrequest:

Thepullrequestautomaticallypingsmeasareviewer,andincludesa“Closes#X”linewhichwillclosethedraftissueoncethePRismerged.Veryconvenient!

Oncethepullrequestisready,Netlifytakesitaway,buildseverythingandgeneratesahandypreview:

Icanmakesureeverythinglooksright,andevenapplyeditsdirectlyinsidethepullrequest.Thisisanothergreatsteptosendalongblogpostforfeedback,usingallofthewonderfulPullRequestReviewfeatures!

Whenallissaidanddone,mergingthepullrequesttriggersNetlifytopublishmychangestomydomain,andmergingclosestheoriginalissue,andI’mdone!

Bonus

Dragn’dropimagesworkinGithubIssues,soit’ssupereasytowriteaquickpostwithabunchofscreenshotsorwhathaveyou.

It’simportanttomethatI’mnottootightlycoupledtothird-partyservices,sothepullrequestandcodemergeflowmakessurethatallofthepublishedstatecontinuestoliveinsideofmyGitrepository.

IcanstillmakeblogpoststhewayIusedto:Pullthelatestrepo,writesomemarkdown,andpushtopublish.

Iaddedalittle?frontmatterifyscript?toprocesstheincomingmarkdownandconverttheremoteGithubIssueuploadedimagesintolocalimagesthatareincludedinthepullrequest.ThescriptalsogeneratesfrontmatterthatIuseforHugo.It’sabitclunkybutworksfornow.

Alright,let’sdothis.

来源:金色财经

郑重声明: 本文版权归原作者所有, 转载文章仅为传播更多信息之目的, 如作者信息标记有误, 请第一时间联系我们修改或删除, 多谢。

金星链

[0:15ms0-0:834ms