0%

常用命令

备份文件

1
$ cp /etc/nova/nova.cof{,.bak}

生成指定大小文件

1
2
3
4
5
6
7
8
# 10B
dd if=/dev/zero of=10b.txt bs=1 count=10

# 10K
dd if=/dev/zero of=10k.txt bs=1k count=10

# 10M
dd if=/dev/zero of=10m.txt bs=1m count=10
阅读全文 »

The Complete Character Code List

The strftime method takes several directives for formatting date values:

  • %a: Returns the first three characters of the weekday, e.g. Wed.
  • %A: Returns the full name of the weekday, e.g. Wednesday.
  • %B: Returns the full name of the month, e.g. September.
  • %w: Returns the weekday as a number, from 0 to 6, with Sunday being 0.
  • %m: Returns the month as a number, from 01 to 12.
  • %p: Returns AM/PM for time.
  • %y: Returns the year in two-digit format, that is, without the century. For example, “18” instead of “2018”.
  • %f: Returns microsecond from 000000 to 999999.
  • %Z: Returns the timezone.
  • %z: Returns UTC offset.
  • %j: Returns the number of the day in the year, from 001 to 366.
  • %W: Returns the week number of the year, from 00 to 53, with Monday being counted as the first day of the week.
  • %U: Returns the week number of the year, from 00 to 53, with Sunday counted as the first day of each week.
  • %c: Returns the local date and time version.
  • %x: Returns the local version of date.
  • %X: Returns the local version of time.
阅读全文 »

原文地址: Getting Started with React - An Overview and Walkthrough Tutorial

在我学习JavaScript的时候我还没有听说过React,但是我承认我简单的看过React并且被它吓到了.
因为我看到ReactHTMLJavaScript杂合在一起,而这个不正是我们一直以来都在避免的吗?
React这样做有什么意义?
所以我只专注于学习普通的JavaScript并且在专业的配置下配合着jQuery一起使用.
在进过几次受挫和失败之后,我最终还是去尝试React,并且我开始思考为什么我想要用React而不是JavScript或者jQuery.
我尝试着总结我学到的所有知识来完成这个教程给你们.

阅读全文 »

🌽:corn: 😄:smile: 😆:laughing:
😊:blush: 😃:smiley: :relaxed:
😏:smirk: 😍:heart_eyes: 😘:kissing_heart:
😚:kissing_closed_eyes: 😳:flushed: 😌:relieved:
😆:satisfied: 😁:grin: 😉:wink:
😜:stuck_out_tongue_winking_eye: 😝:stuck_out_tongue_closed_eyes: 😀:grinning:
😗:kissing: 😙:kissing_smiling_eyes: 😛:stuck_out_tongue:
😴:sleeping: 😟:worried: 😦:frowning:
😧:anguished: 😮:open_mouth: 😬:grimacing:
😕:confused: 😯:hushed: 😑:expressionless:
😒:unamused: 😅:sweat_smile: 😓:sweat:
😥:disappointed_relieved: 😩:weary: 😔:pensive:
😞:disappointed: 😖:confounded: 😨:fearful:
😰:cold_sweat: 😣:persevere: 😢:cry:
😭:sob: 😂:joy: 😲:astonished:
😱:scream: :neckbeard: 😫:tired_face:
😠:angry: 😡:rage: 😤:triumph:
😪:sleepy: 😋:yum: 😷:mask:
😎:sunglasses: 😵:dizzy_face: 👿:imp:
😈:smiling_imp: 😐:neutral_face: 😶:no_mouth:
😇:innocent: 👽:alien: 💛:yellow_heart:
💙:blue_heart: 💜:purple_heart: :heart:
💚:green_heart: 💔:broken_heart: 💓:heartbeat:
💗:heartpulse: 💕:two_hearts: 💞:revolving_hearts:
💘:cupid: 💖:sparkling_heart: :sparkles:
:star: 🌟:star2: 💫:dizzy:
💥:boom: 💥:collision: 💢:anger:
:exclamation: :question: :grey_exclamation:
:grey_question: 💤:zzz: 💨:dash:
💦:sweat_drops: 🎶:notes: 🎵:musical_note:
🔥:fire: 💩:hankey: 💩:poop:
💩:shit: 👍:+1: 👍:thumbsup:
👎:-1: 👎:thumbsdown: 👌:ok_hand:
👊:punch: 👊:facepunch: :fist:
:v: 👋:wave: :hand:
:raised_hand: 👐:open_hands: :point_up:
👇:point_down: 👈:point_left: 👉:point_right:
🙌:raised_hands: 🙏:pray: 👆:point_up_2:
👏:clap: 💪:muscle: 🤘:metal:
🖕:fu: 🚶:walking: 🏃:runner:
🏃:running: 👫:couple: 👪:family:
👬:two_men_holding_hands: 👭:two_women_holding_hands: 💃:dancer:
👯:dancers: 🙆:ok_woman: 🙅:no_good:
💁:information_desk_person: 🙋:raising_hand: 👰:bride_with_veil:
🙎:person_with_pouting_face: 🙍:person_frowning: 🙇:bow:
couplekiss:couplekiss: 💑:couple_with_heart: 💆:massage:
💇:haircut: 💅:nail_care: 👦:boy:
👧:girl: 👩:woman: 👨:man:
👶:baby: 👵:older_woman: 👴:older_man:
👱:person_with_blond_hair: 👲:man_with_gua_pi_mao: 👳:man_with_turban:
👷:construction_worker: 👮:cop: 👼:angel:
👸:princess: 😺:smiley_cat: 😸:smile_cat:
😻:heart_eyes_cat: 😽:kissing_cat: 😼:smirk_cat:
🙀:scream_cat: 😿:crying_cat_face: 😹:joy_cat:
😾:pouting_cat: 👹:japanese_ogre: 👺:japanese_goblin:
🙈:see_no_evil: 🙉:hear_no_evil: 🙊:speak_no_evil:
💂:guardsman: 💀:skull: 🐾:feet:
👄:lips: 💋:kiss: 💧:droplet:
👂:ear: 👀:eyes: 👃:nose:
👅:tongue: 💌:love_letter: 👤:bust_in_silhouette:
👥:busts_in_silhouette: 💬:speech_balloon: 💭:thought_balloon:
阅读全文 »