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

Igotintothehabitofdumpingquickblogpostideasintoissuesonmyblog’srepo.It’saconvenientplacetoiterateonthemandsharewithfriendsforfeedbackbeforeactuallypublishingonmyblogpost.

Thedraftskeepaccumulating,howdoItrickmyselfintopublishingmore?Perhapsbyreducingtheeffortrequiredforthenextstep?Let’sdoit!

Architecture

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

福州出台推动区块链产业发展的三条措施:5月13日消息,福州市大数据委、市财政局联合印发《关于推动福州市区块链产业发展的三条措施》。立足福州市区块链产业发展需求及国家区块链创新应用试点工作,旨在全面推动全市区块链产业和技术创新发展,加快建成区块链创新发展体系。措施分别为:

支持优质企业落地:入驻的区块链企业或机构每年每家企业或机构给予1000平方米以内最高60万元的租金补贴,按年以先缴后补的方式实施。

支持创新示范应用:在试点建设期内,企业开展的区块链应用落地福州市内且经福州市大数据委评审列为重点示范项目的,每个项目给予区块链应用方20%的建设经费补贴,最高不超过50万元。

支持产业平台和人才建设:对获得国家级、省级、市级认定的区块链技术重点实验室、工程(技术)研究中心、企业技术中心等技术创新平台,分别给予100万元、50万元、30万元奖励。同时,鼓励具有区块链培训资质和能力的企业、社会团体等机构开展区块链人才培训工作。[2023/5/13 15:01:03]

TheblogpostdraftsarepostedasGithubissues,sothereisacleargap:HowdoweconvertissuesintopullrequestsforNetlify?EnterGithubActions!

Justin Sun过去1小时向Binance地址转移近1.5亿枚USDT:3月12日消息,据 Whale Alert 数据显示,被标记为 Justin Sun 的地址于过去 1 小时内从 Tether 处收到 1.98 亿枚 USDT,随后向 Binance 地址转移 1.497 亿枚 USDT,共分 3 次转移,每次转移 4990 万枚 USDT。[2023/3/13 12:59:10]

GithubAction:IssuetoPullRequest

My?fullworkflowliveshere?ifwewanttojumpahead,butlet’sbreakdownthebroadstrokes.

Idecidedtotriggerthepublishingprocessonceanissueislabelledwith‘publish’,solet’sstartwiththat:

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

DeSo区块链宣布推出稳定币 DesoDollar:金色财经报道,DeSo区块链宣布推出1:1法定支持的稳定币 DesoDollar。DAODAO 是 DeSo 生态系统中第一个利用 DesoDollar 的应用程序,它允许创始人通过 USDC 为其创业公司筹集资金。??[2022/10/19 16:30:20]

Nextupwewanttospecifythesteps,firstthingistocheckouttherepositoryintotheaction’senvironment:

?-?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.

美联储卡什卡利:不认为美联储需要在2024年前加息:据华尔街日报报道,美国明尼阿波利斯联储主席尼尔-卡什卡利(NeelKashkari)表示,并不认为美联储需要在2024年之前加息。[2021/10/2 17:20:12]

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?}}"

NEO创始人:NEO目标是在2020成为区块链第一:在今日举办的NEO开发者会议上,NEO创始人达鸿飞表示,NEO目标是在2020年成为区块链第一。[2018/1/31]

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:3ms0-7:857ms