#中英之11
同場加映
#2022新書
#LittlePeaDrawingSchool
Little Pea's Drawing School
Discover Little Pea's Drawing School, where everyone is about to learn an important lesson about art, even the teacher!
Little Pea is now an accomplished artist--everyone knows it. One day, a friend of his encourages him to open a drawing school. What a marvelous idea! Shortly after, his first class is ready to attend his lessons, and everyone is working hard to improve their skills and techniques. Little Pea will soon learn that one does not always recognize a great artist at first glance.
#LittlePeaGrandJourney
Little Pea's Grand Journey
#小豆子的大冒險
What is the best solution to a creative dry spell? A grand journey!
Little Pea illustrates stamps for a living. He has painted insects, tomatoes, cars, and flowers. But what should he draw next? Short on inspiration, he sets off on a great journey and a quest for ideas in his bright red plane. Who knows where he will land!
#TheTinyTaleofLittlePea
The Tiny Tale of Little Pea
#小豆子
"When he was born, Little Pea was tiny. Teeny-tiny." His clothes were hand sewn by his mother and his shoes were hand-me-down doll shoes. As he grew older, Little Pea enjoyed climbing tomato plants, driving around in his wind-up car and riding on the backs of grasshoppers. But then Little Pea started school. And he suddenly realized just how small he was. Too small for his chair. Too small to play the flute. Too small for gym class. What would become of wee Little Pea?
#中英之11
同場加映
#2022新書
同時也有1168部Youtube影片,追蹤數超過2萬的網紅黑小多,也在其Youtube影片中提到,《黑小多のTwitch實況台》←“頻道相關Q&A”也在這邊看唷~ http://www.twitch.tv/blackchan 《黑小多の粉絲團》←大家趕緊去幫我按個讚吧!w http://www.facebook.com/heyxiaotto 《能貓姊整理的全成就資料》←感謝能貓姊! http...
「draw it」的推薦目錄:
- 關於draw it 在 英該多看書 繪本與書籍 Facebook 的最讚貼文
- 關於draw it 在 Facebook 的精選貼文
- 關於draw it 在 Taipei Ethereum Meetup Facebook 的精選貼文
- 關於draw it 在 黑小多 Youtube 的精選貼文
- 關於draw it 在 CH Music Channel Youtube 的最讚貼文
- 關於draw it 在 呂聰賢 Youtube 的精選貼文
- 關於draw it 在 Just draw it. - Home | Facebook 的評價
- 關於draw it 在 vim-scripts/DrawIt: Ascii drawing plugin - GitHub 的評價
- 關於draw it 在 I only colored it, I didn't draw it so credits to draw (idk who that ... 的評價
draw it 在 Facebook 的精選貼文
Good news guys. XPG Global and ZOTAC just dropped us 1x ADATA SE760 1TB External SSD and 5x ZOTAC T-Shirt for Lucky Draw. You will get the details on how to win it in the Esports Academy - Friendly Match Final Livestream by HusKKiee and me later.
draw it 在 Taipei Ethereum Meetup Facebook 的精選貼文
📜 [專欄新文章] Gas Efficient Card Drawing in Solidity
✍️ Ping Chen
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium
Assign random numbers as the index of newly minted NFTs
Scenario
The fun of generative art NFT projects depends on randomness. The industry standard is “blind box”, where both the images’ serial number and the NFTs’ index are predetermined but will be shifted randomly when the selling period ends. (They call it “reveal”) This approach effectively solves the randomness issue. However, it also requires buyers to wait until the campaign terminates. What if buyers want to know the exact card right away? We’ll need a reliable onchain card drawing solution.
The creator of Astrogator🐊 isn’t a fan of blind boxes; instead, it thinks unpacking cards right after purchase is more interesting.
Spec
When initializing this NFT contract, the creator will determine the total supply of it. And there will be an iterable function that is randomly picking a number from the remaining pool. The number must be in range and must not collide with any existing ones.
Our top priority is accessibility/gas efficiency. Given that gas cost on Ethereum is damn high nowadays, we need an elegant algorithm to control gas expanse at an acceptable range.
Achieving robust randomness isn’t the primary goal here. We assume there’s no strong financial incentive to cheat, so the RNG isn’t specified. Implementers can bring their own source of randomness that they think is good enough.
Implementation
Overview
The implementation is pretty short and straightforward. Imagine there’s an array that contains all remaining(unsold) cards. When drawIndex() is called, it generates a (uniform) random seed to draw a card from the array, shortens the array, and returns the selected card.
Algorithm
Drawing X cards from a deck with the same X amount of cards is equal to shuffling the deck and dealing them sequentially. It’s not a surprise that our algorithm is similar to random shuffling, and the only difference is turning that classic algo into an interactive version.
A typical random shuffle looks like this: for an array with N elements, you randomly pick a number i in (0,N), swap array[0] and array[i], then choose another number i in (1,N), swap array[1] and array[i], and so on. Eventually, you’ll get a mathematically random array in O(N) time.
So, the concept of our random card dealing is the same. When a user mints a new card, the smart contract picks a number in the array as NFT index, then grabs a number from the tail to fill the vacancy, in order to keep the array continuous.
Tweak
Furthermore, as long as the space of the NFT index is known, we don’t need to declare/initialize an array(which is super gas-intensive). Instead, assume there’s such an array that the n-th element is n, we don’t actually initialize it (so it is an array only contains “0”) until the rule is broken.
For the convenience of explanation, let’s call that mapping cache. If cache[i] is empty, it should be interpreted as i instead of 0. On the other hand, when a number is chosen and used, we’ll need to fill it up with another unused number. An intuitive method is to pick a number from the end of the array, since the length of the array is going to decrease by 1.
By doing so, the gas cost in the worst-case scenario is bound to be constant.
Performance and limitation
Comparing with the normal ascending index NFT minting, our random NFT implementation requires two extra SSTORE and one extra SLOAD, which cost 12600 ~ 27600 (5000+20000+2600) excess gas per token minted.
Theoretically, any instantly generated onchain random number is vulnerable. We can restrict contract interaction to mitigate risk. The mitigation is far from perfect, but it is the tradeoff that we have to accept.
ping.eth
Gas Efficient Card Drawing in Solidity was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.
👏 歡迎轉載分享鼓掌
draw it 在 黑小多 Youtube 的精選貼文
《黑小多のTwitch實況台》←“頻道相關Q&A”也在這邊看唷~
http://www.twitch.tv/blackchan
《黑小多の粉絲團》←大家趕緊去幫我按個讚吧!w
http://www.facebook.com/heyxiaotto
《能貓姊整理的全成就資料》←感謝能貓姊!
https://docs.google.com/spreadsheets/d/1j7JMNRIhwuwFZFctuVALVUztkkWgeQjFT_vTaHvW9Ts/edit?usp=sharing
----------------------------------------------------
0:00 需要通關的關卡
0:41 彈鋼琴
-----57個所需成就-----
1:46 1.Jewelry Store 珠寶店 - Diamonds are Forever
1:52 2.任何銀行劫案 - A Good Haul
1:57 3.Shadow Raid 影之襲擊 - I Will Pass Through Walls
2:02 4.GO Bank 全武銀行 - All Eggs in One Basket
2:07 5.Diamond Store 鑽石店 - Hostage Situation
2:25 6.任何運鈔車劫案(不包含火車) - But Wait - There’s More
2:36 7.Train Heist 運鈔車:火車劫案 - We’re Gonna Need a Bigger Boat
2:44 8.Mallcrasher 商場破壞者 - Self Checkout
2:48 9.Four Stores 四間店 - Platinum Card 或 Yeah, He’s a Gold Digger
2:53 10.White Xmas 白色聖誕劫- What’s in the Box?
2:56 11.Ukrainian Job 烏克蘭人的委託 - Let’s do th…
3:01 12.Meltdown 爐心熔解 - They Don’t Pay Us Enough
3:08 13.Aftershock 震後餘生 - Bring It Back Safe
3:17 14.Nightclub 夜總會 - Let Them Boogie
3:30 15.Stealing Xmas 聖誕大盜 - The Grinch
3:39 16.Watchdogs 看門狗 - Out of bounds
4:06 17.Firestarter 縱火者 - Lord of War
4:13 18.Rats 鼠輩 - Full Measure
4:19 19.Big Oil 石油大亨 - Doctor Fantastic
4:28 20.Framing Frame 偷天換日 - I Wasn’t Even There!
4:38 21.Election Day 選舉日 - I’m A Swinger
4:48 22.Big Bank 大銀行 - Don’t bring the Heat
4:59 23.Hotline Miami 熱線邁阿密 - Walk Faster
5:16 24.Hoxton Breakout 老哈逃獄記 - Watch The Power Switch!
5:22 25.Hoxton Revenge 老哈復仇記 - Silent But Deadly
5:30 26.The Diamond 驚世奇鑽 - Cat Burglar
5:37 27.Golden Grin Casino 金牙賭場劫案 - High Roller
5:52 28.Bomb: Dockyard 炸彈劫案:碼頭 - I’ve got the Power
6:06 29.Bomb: Forest 炸彈劫案:森林 - Pump It Up
6:20 30.Scarface Mansion 疤面公館 - Settling a Scar
6:28 31.The Alesso Heist 音樂會劫案 - Sound of Silence
6:39 32.Counterfeit 偽鈔風雲 - Dr. Evil
6:48 33.First World Bank 世界第一銀行 - OVERDRILL
6:54 34.Murky Station 黑水火車站 - The Pacifist
7:06 35.Boiling Point 沸點 - Remember, No Russian
7:22 36.Goat Simulator 山羊模擬器 - Hazzard County
7:49 37.Santa’s Workshop 聖誕工坊 - Santa Slays Slackers
8:11 38.Car Shop 車店 - Gone in 240 seconds
8:19 39.The Biker Heist 暴走族劫案 - Full Throttle
8:37 40.Panic Room 戰慄空間 - Quick Draw
8:48 41.Brooklyn 10-10 荒唐警局 - A Rendezvous With Destiny
9:04 42.The Yacht Heist 遊艇劫案 - Pacifish
9:11 43.Undercover 骯髒交易 - Not Even Once
9:29 44.Slaughterhouse 屠宰場 - Making a Statement
9:47 45.Beneath the Mountain 山脊之下 - Clean House
10:12 46.Birth of Sky 誕於天際 - 1...2...3… JUMP!
10:25 47.Heat Street 熱街 - It’s Nice To Be Nice
10:39 48.Green Bridge 格林大橋 - Attacked Helicopter
10:49 49.Alaskan Deal 阿拉斯加交易- The Fuel Must Flow
10:59 50.Diamond Heist 經典鑽石劫案 - Blood Diamond
11:13 51.Reservoir Dogs 落水狗劫案 - Waste Not, Want Not
11:27 52.Brooklyn Bank 布魯克林銀行- All the Gold in Brooklyn
11:36 53.Breakin’ Feds 闖越FBI - Stalker
12:08 54.Henry’s Rock 亨利峽谷 - Hack This!
12:22 55.Shacklethorne Auction 拍賣會劫案 - Press [F] to pay Respect
12:47 56.Hell’s Island 地獄島 - Beacon of.. nope
12:55 57.No Mercy 慈愛醫院 - Keeping the Cool
13:15 結語
------------------------------------------------------------------------------------------------
如果你喜歡我的Youtube影片,記得在影片左下方的地方按一下「喜歡」的按鈕,
以及「訂閱」我的Youtube,訂閱我的頻道就能與小多簽訂暗黑契約,
亦或是在下面留下你的評論,你的評論也可以讓小多的暗黑力量繼續壯大唷!(ˋ wˊ)/
#黑小多
#劫薪日2
#隱藏結局
![post-title](https://i.ytimg.com/vi/r0hWFpivKd8/hqdefault.jpg)
draw it 在 CH Music Channel Youtube 的最讚貼文
《pop'n music 15 ADVENTURE》
凛として咲く花の如く / Rin to shite saku hana no gotoku / 宛如凜風中綻放的花 / Like a flower that blooms bravely
作詞 / Lyricist:あさき
作曲 / Composer:紅色リトマス(TOMOSUKE)
編曲 / Arranger:紅色リトマス(TOMOSUKE)
歌 / Singer:オカマチコ
翻譯:CH(CH Music Channel)
意譯:CH(CH Music Channel)
English Translation: from the wiki
背景 / Background - 灯篭 - カット:
https://www.pixiv.net/artworks/58137405
上傳你的字幕吧!/ Submit your subtitles here!
https://forms.gle/MSsAM2WHpT31UuUh8
版權聲明:
本頻道不握有任何音樂所有權,亦無任何營利,一切僅為推廣用途。音樂所有權歸原始創作者所有。請支持正版。
Copyright Info:
Be aware this channel is for promotion purposes only without any illegal profit. All music's ownership belongs to the original creators.
Please support the original creator.
すべての権利は正当な所有者/作成者に帰属します。あなたがこの音楽(または画像)の作成者で、この動画に使用されたくない場合はメッセージまたはこのYoutubeチャンネルの概要のメールアドレスにご連絡ください。私はすぐに削除します。
如果你喜歡我的影片,不妨按下喜歡和訂閱,你的支持就是我創作的最大原動力!
If you like my videos, please click like and subscribe! Thx :)
粉絲團隨時獲得最新訊息!
Check my Facebook page for more information!
https://www.facebook.com/chschannel/
中文翻譯 / Chinese Translation :
https://home.gamer.com.tw/creationDetail.php?sn=5270562
英文翻譯 / English Translation :
https://popnmusic.fandom.com/wiki/Rin_to_shite_saku_hana_no_gotoku
日文歌詞 / Japanese Lyrics :
春深く夢の輪郭を ぼかして 行き過ぎて 舞い戻る
花びらは仕草を追いかけ 薄明かりの下で 密やか
つまさきであやす月の兎は踊り
星の間を飛び回る 口笛吹き
飛沫 あがる わたし 掛ける
追いかける星は まわる まわる ちいさなつぼみ
さいて さいて 月にお願い おだやかな影に薄化粧
しらず しらず えいや!と投げた つぼみは行方知れず のまま
見下ろして小さくなった雲の間に
芽を出した線香花火 つぶらな夢
飛沫 あがる 火花 翔る
問いかけた星は かわる がわる 顔を変えた
さいて さいて くるりとまわる 舞姫の如く たまゆらに
思い思いに動く影と 背中を合わせて ああ 走る!
弧を描き 影は延びる 陽炎の先に
さいた あった! まあるい花が
さいた さいた 星の欠片が 月の裏側で泣いていた
気付かぬうちに 隠れていた兎も また弧 描く
さいて さいて 月にお願い おだやかな影に薄化粧
しらず しらず えいや!と投げた つぼみは 行方知れず
さいて さいた 風に揺られて おだやかな坂は薄化粧
下駄鳴らして口笛合わせ 凛として はんなりの こころ
中文歌詞 / Chinese Lyrics :
春意正深,浸暈了夢的輪廓,花瓣紛飛、舞態極妍
薄曉微光下靜悄地,飄揚的繁華隨著動作飛繞於身
月兔墊著爪稍舞蹈
吹著口哨,在群星間來回穿梭
水濺花揚,我奔跑著
追逐的明星,正轉啊、轉動著,恰似幼嫩的花蕾
「綻放吧、綻放吧!」向月娘祈禱,並為靜宓的月影淡施薄妝
「不明白、不明白呀!」唉聲嘆氣,始終無從知曉,渺小花蕾的蹤跡
因俯瞰而微渺的從雲間隙
綻放恰似花蕾的線香煙火,燃著甜美的夢
激起水沫、揚起火花
於此叩問的繁星,一張接著一張,反覆變換面貌
「綻放吧、綻放吧!」反覆迴旋,猶如稍縱即逝的輕巧舞女般
想念著、想念著的那個身影,與記憶形影交織,就這樣走吧!
舒展身姿、描繪形影,在此驕陽之前——
凜然地綻放了一朵,好完滿的花啊
綻放吧、綻放吧,於月娘身後哭泣的、宙海繁星的殘片
卻沒有注意到,躲著的兔兒也再度描起新月的身姿
「綻放吧、綻放吧!」向月娘祈禱,並為靜宓的月影淡施薄妝
「不明白、不明白呀!」唉聲嘆氣,始終無從知曉,渺小花蕾的蹤跡
「綻放吧!綻放啦!」風兒搖曳,為沉靜的丘壑淡施薄妝
木屐鳴響、口哨伴歌,凜冽綻放的是,那顆明潔絢爛之心
英文歌詞 / English Lyrics :
The outline of spring's deep dream
That had blurred way too much returns to me
When the flower petals chased after my moves,
Quiet under the dim twilight
Balancing on tiptoe, moon rabbits dance,
Whistling and flying through the stars
In a splash of color,
I begin chasing
A star spinning round,
Spinning round, a small flower bud
"Bloom, bloom!" I begged of the moon,
"And dress the gentle shadows in your light makeup."
But I never knew, never knew, augh! I give up!
I still don't know where this little flower bud will end up.
Looking down through the shrinking clouds of smoke,
A sparkler suddenly blossomed to life
In a blinding dream.
In a splash of color,
Sparks begin
And the strange stars
One after another, changed their faces
Bloom, bloom! Twirl right around
Like a ballerina for a fleeting moment
But I think, I think something's moving in the shadows
From behind my back, ah, run away!
The arc of shadow drawn
On the moon extends beyond the heat haze
And, it bloomed already! Into a round flower,
It bloomed, it bloomed! Fragments of stars
Cried on the other side of the moon and unnoticed to me,
The hidden rabbits continued
To draw an arc
"Bloom, bloom!" I begged of the moon
"And dress the gentle shadows in your light makeup."
But I never knew, never knew, augh! I give up!
I don't know these little flower buds,
But they bloom, they bloomed!
Blowing in the wind, dressing the gentle hill in light makeup
Their footsteps ring, whistling to one another
From their dignified, quietly beautiful hearts.
![post-title](https://i.ytimg.com/vi/QeHUrqE5Jvk/hqdefault.jpg)
draw it 在 vim-scripts/DrawIt: Ascii drawing plugin - GitHub 的推薦與評價
DrawIt incorporates an "erase" mode, toggled by the <space> key, that will leave a trail of blanks behind and under the cursor as it is moved by the number pad. ... <看更多>
draw it 在 I only colored it, I didn't draw it so credits to draw (idk who that ... 的推薦與評價
I only colored it, I didn't draw it so credits to draw (idk who that is) I'm sorry if u don't like. Bungou stray dogs, Chuuya. 更多類似釘圖. ... <看更多>
draw it 在 Just draw it. - Home | Facebook 的推薦與評價
歡迎訂製個人肖像素描! 送禮紀念皆獨特! 單人(臉部特寫):(不附框)(不含背景) 3*5照片大小(即7.62cm*12.7cm)600元 4*6照片大小(即10.16cm*15.24cm)800元 ... <看更多>