投稿時間:2022-12-05 00:12:14 RSSフィード2022-12-05 00:00 分まとめ(16件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita 流行りの画像生成やってみた! https://qiita.com/iketuba/items/876af9d565231e0ba2e5 hugginfac 2022-12-04 23:25:01
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScript の関数宣言と関数式って何が違うの? https://qiita.com/kotaro-caffeinism/items/cd84e4fc3aa90412474b javascript 2022-12-04 23:59:28
js JavaScriptタグが付けられた新着投稿 - Qiita エンジニアがLINEとGASで結婚式の参加者体験を向上させようとした話 https://qiita.com/WdknWdkn/items/e17834e44ca557c03bf0 公式アカウント 2022-12-04 23:44:20
Ruby Rubyタグが付けられた新着投稿 - Qiita iTerm2のサーバーログにあるRailsのファイルパスをクリックした時にRubyMineで開けるように設定する https://qiita.com/YutoYasunaga/items/7f624fb38ded28db085a rubymin 2022-12-04 23:07:59
AWS AWSタグが付けられた新着投稿 - Qiita AWS SAM cron 設定は UTC 依存ではなく Timezone 依存のスケジューラ (ScheduleV2) を使おう https://qiita.com/baku2san/items/2514ce485731ff7068c5 awssamcron 2022-12-04 23:28:21
AWS AWSタグが付けられた新着投稿 - Qiita Raspberry Pi Zero2 W を使ってAmazon Kinesis Video Streams(CPP)のビルド https://qiita.com/tetsuoMikami/items/57f9d3ec23ffa9c9a75b amazon 2022-12-04 23:20:23
技術ブログ Developers.IO [AWS IoT TwinMakerへもインポート可能!] Matterportで自宅の部屋の3Dデータを作成してみた https://dev.classmethod.jp/articles/creating-3d-data-for-a-room-at-home-with-matterport/ nervogelsamazoncomvpandct 2022-12-04 14:54:41
技術ブログ Developers.IO momento Roundtable sessionに参加しました #reinvent https://dev.classmethod.jp/articles/momento-roundtable-session-reinvent/ momento 2022-12-04 14:32:25
技術ブログ Developers.IO [レポート] B-1 プロダクトマネジメントと民主主義 – プロダクトマネージャーカンファレンス2022 #pmconf2022 https://dev.classmethod.jp/articles/report-pmconf2022-b1/ pmconf 2022-12-04 14:06:11
海外TECH DEV Community Type Assertions, Trucks, and Aliens https://dev.to/about14sheep/type-assertions-trucks-and-aliens-be2 Type Assertions Trucks and AliensBuckle up yo I m listening to R amp B and gyrating right nowIt s extremely early where I am and I couldn t sleep So like any logical person would be doing I was reading through the TypeScript Handbook As I am reading the part about type assertions the as keyword I couldn t help but think back to a StackOverflow answer I wrote about it Don t get me wrong I like my answer However it s just that its well its While laying there I had an epiphany the likes of which would make every Ancient Astronaut Theorist proud I could spice up the explanation of type assertions and make it more understandable if I added aliens What even is TypeScript If you don t know what TypeScript is you should That s all I have to say about that Type AssertionsNow that it s just us TS nerds lets talk about Type Assertions In short because obviously I am going to explain it WAY cooler further down a type assertion is you telling the compiler whats up The compiler isn t the great Giorgio A Tsoukalos sometimes you just know better Type Assertions allow you to tell the compiler that a particular type will behave like another i e have the same shape I won t bog us down with code yet and the handbook has a great example so i ll just steal that For example if you re using document getElementById TypeScript only knows that this will return some kind of HTMLElement but you might know that your page will always have an HTMLCanvasElement with a given ID In this situation you can use a type assertion to specify a more specific type const myCanvas document getElementById main canvas as HTMLCanvasElement That s all well and good pretty easy to understand However there are obvious limitations to this What if I tried to tell the stoopid computer machine this const myVar as string Error sending nuclear launch codes to Russia TypeScript will throw a fit and its correct to do so The compiler is smart enough to know there is no possible way this number can behave like a string Instead of me grinding this down you go try it in plain old JavaScript Try and read the length property of and see if you don t cause World War ¿¿¿Where Aliens If the compiler is so smart why does asserting to the type any or unknown allow me to then assert it as a string Am I bamboozling the compiler const myVar as any as string Can I now magically call the length property of and not cause World War Slow down on the questions it s early and the coffee is still brewing The answer to length is still no That will NEVER be a thing Give it up already kid However you are bamboozling the compiler When you cast the multiple type assertion spell it makes the compiler immediately believe you there is not even a saving roll It throws its little compiler hands up and says ok mr dungeon master you know best and goes about its day Why you ask again That s where the aliens come in No more memes just factsNow that it s really just us TS nerds Let s start with two data types one is a truck interface Truck color string numDoors number drive gt truck method to drive cause all trucks drive the other is a plane interface Plane color string numPropellers number fly gt plane method to fly cause all planes fly Now lets focus on the truck for now If I were to show you this truck const truck Truck you would be able to assume it does truck things You would expect a number of doors to access it its color and other truck things If I told you to go and drive the truck truck drive you would see no problem thinking you could hope in and drive it What if I told you to fly truck fly the truck You would throw a syntax error and remind me that it is physically impossible for trucks to fly that s what planes do Even if I said think of this truck as a plane const truck Truck lt insert truck object gt as PlaneYou would probably slap me and leave the room You can not be fooled so easily you are a smart compiler Now what if I told you it was an alien truck Well now it could be anything the any type you might say You have no idea what them aliens be doing these days It is perfectly plausible that an alien truck can fly You would have no problem getting in the truck and attempting to make it fly That s what multiple Type Assertions are doing By broadening the type to any anything is possible So its then perfectly valid syntactically to narrow an any type down to a string in our example const myVar as any as string BUT WHAT ABOUT length You would be correct in worrying about this Since the compiler does not care you could run this code In code the alien veil will come off revealing a regular old truck trying to fly when it can t Then the program crashes just as the truck would However there is a correct way to do this Instead of going to aliens for a flying truck you could just invent it like the genius you are In TypeScript you can extend interfaces to add functionality to them so to make your special truck you would simply interface FlyingTruck extends Truck You will get all the properties of the Truck type fly gt Plus the ability to fly And Presto You have now invented the flying truck When you now instantiate a FlyingTruck you will be able to fly that bad boy without any issue The compiler is happy the JavaScript interpreter is happy Giorgio A Tsoukalos is happy and you know what I m happy Shameless promotingIf you liked this article let me know in the comments If you didn t like it get lost I won t tell you I will be writing more blogs because most of time I m too lazy However if one of my blogs draws enough attention how can I not give the people what they want So let me know below 2022-12-04 14:46:23
海外TECH DEV Community Git Cheat Sheet - 40+ Git Comands You Should Know https://dev.to/shivamblog/git-cheat-sheet-40-git-comands-you-should-know-50c8 Git Cheat Sheet Git Comands You Should KnowGit is the free and open source distributed version control system This cheat sheet features the most important and commonly used Git commands for easy reference Having trouble remembering git commands Here s a cheat sheet with more than commands to make your life simpler GIT SETUP amp INIT Configuring user informationgit config global user name firstname lastname git config global user email valid email git config global color ui auto Initialize a local repositorygit init directory The is optional If you don t specify it the current directory will be used Clone a remote repositorygit clone url retrieve an entire repository from a hosted location via URL STAGE amp SNAPSHOT Show modified files in working directorygit status Add a file to the staging areagit add file To add all files in the current directory use in place of lt file gt git add Add only certain file to the staging areaWith the asterisk in the command below you can add all files starting with fil in the staging area git add fil Remove a file from the staging areagit reset file Display the changes to unstaged filesgit diffYou can also use the staged flag to display the changes to staged files git diff staged Display the changes between two commitsgit diff commit id gt lt commit id Commit your staged contentgit commit m “ descriptive message If you want to add all changes made to tracked files amp commitgit commit a m lt message gt ORgit commit am lt message gt BRANCH amp MERGE Display list of your branchgit branchUseful flags a Display all branches local amp remote r Display remote branches v Display branches with last commit Create a new branchcreate a new branch at the current commitgit branch branch name Switch to a branchgit checkout branch Delete a branchgit branch d branch Merge a branchgit merge branch name Abort conflicting mergegit merge abort INSPECT amp COMPAREExamining logs diffs and object information Display the commit historygit logshow the commits on branchA that are not on branchBgit log branchB branchAshow the commits that changed file even across renamesgit log follow file Object in Git in human readable formagit show SHA SHARE amp UPDATERetrieving updates from another repository and updating local repos Add a remote repositorygit remote add remote name url Display remote repositoriesgit remoteAdd a v flag to display the URLs of the remote repositories git remote v Remove a remote repositorygit remote remove remote name Rename a remote repositorygit remote rename old name new name Fetch changes from a remote repositorygit fetch remote name Fetch changes from a particular branchgit fetch remote name branch name Pull changes from a remote repositorygit pull remote name branch name Push changes to a remote repositorygit push remote name Push changes to a particular branchgit push remote name branch TEMPORARY COMMITS Stash changesgit stashYou can also add a message to the stash git stash save lt message gt List stasheslist stack order of stashed file changesgit stash list Apply a stashApplying the stash will NOT remove it from the stash list git stash apply lt stash id gt If you do not specify the lt stash id gt the latest stash will be applied Valid for all similar stash commands Remove a stashgit stash drop lt stash id gt Discard the changes from top of stash stackgit stash drop Remove all stashesgit stash clear Apply and remove a stashgit stash pop lt stash id gt Display the changes in a stashgit stash show lt stash id gt REWRITE HISTORYRewriting branches updating commits and clearing history Revert a commitgit revert lt commit id gt Reset a commitgit reset lt commit id gt You can also add the hard flag to delete all changes but use it with caution git reset hard lt commit id gt Apply any commits of current branch ahead of specified onegit rebase branch TRACKING PATH CHANGESVersioning file removes and path changes Delete the file from project and stage the removal for commitgit rm file Change an existing file path and stage the movegit mv existing path new path Show all commit logs with indication of any paths that movedgit log stat M IGNORING PATTERNSPreventing unintentional staging or commiting of files Save a file with desired paterns as gitignore with either direct string matches or wildcard globs logs notespattern system wide ignore patern for all local repositoriesgit config global core excludesfile file Cache your login credentials in Gitgit config global credential helper cache ConclusionYou may significantly increase your Git productivity by using these commands I ve created this cheat sheet so you don t have to memorise them all You can print this page if you d like or save it as a bookmark for later use Thanks for reading 2022-12-04 14:19:44
海外TECH DEV Community My rule of thumb when making software architecture decisions https://dev.to/kunaljaydesai/my-rule-of-thumb-when-making-software-architecture-decisions-4fig My rule of thumb when making software architecture decisionsIf you have a lot of confidence and or experience in what an ideal end state would be for your use case then Be explicit about identifying that end state and what it would look like Incrementally as needed solve the short term problems biasing for solutions that will get you closer to the ideal end state If you don t have a lot of confidence and or experience in what an ideal end state would be Ship incrementally till you gain confidence in what your ideal end state would be 2022-12-04 14:13:18
Apple AppleInsider - Frontpage News Crime blotter: Video goes viral of Black Friday Apple Store thefts https://appleinsider.com/articles/22/12/04/crime-blotter-video-goes-viral-of-black-friday-apple-store-thefts?utm_medium=rss Crime blotter Video goes viral of Black Friday Apple Store theftsIn the latest Apple Crime Blotter Frankie Grande s iPhone was stolen a guilty plea in a Minneapolis theft ring and an orchestra conductor has iPad and annotated scores stolen The Apple Store in Palo Alto The latest in an occasional AppleInsider feature looking at the world of Apple related crime Read more 2022-12-04 14:25:25
ニュース BBC News - Home Iran to disband morality police amid ongoing protests, says attorney general https://www.bbc.co.uk/news/world-middle-east-63850656?at_medium=RSS&at_campaign=KARANGA attorney 2022-12-04 14:42:18
ニュース BBC News - Home Ngozi Fulani: Dialogue held over Buckingham Palace remarks, BBC told https://www.bbc.co.uk/news/uk-63850466?at_medium=RSS&at_campaign=KARANGA hussey 2022-12-04 14:32:47
ニュース BBC News - Home Patrick Tambay: Former Formula 1 Ferrari driver Tambay dies aged 73 https://www.bbc.co.uk/sport/formula1/63851584?at_medium=RSS&at_campaign=KARANGA ferrari 2022-12-04 14:28:19

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)