斯卡部落集市 scarborough fair
1. scrborough fair
Are you going to Scarborough Fair?
Parsley, sage, rosemary & thyme
Remember me to one who lives there
She once was a true love of mine
Tell her to make me a cambric shirt
(On the side of a hill in the deep forest green)
Parsley, sage, rosemary & thyme
(Tracing a sparrow on snow-crested ground)
Without no seams nor needlework
(Blankets and bedclothes a child of the mountains)
Then she’ll be a true love of mine
(Sleeps unaware of the clarion call)
Tell her to find me an acre of land
(On the side of a hill, a sprinkling of leaves)
Parsley, sage, rosemary, & thyme
(Washes the grave with silvery tears)
Between the salt water and the sea strand
(A soldier cleans and polishes a gun)
Then she’ll be a true love of mine
Tell her to reap it in a sickle of leather
(War bellows, blazing in scarlet battalions)
Parsley, sage, rosemary & thyme
(Generals order their soldiers to kill)
And gather it all in a bunch of heather
(And to fight for a cause they’ve long ago forgotten)
Then she’ll be a true love of mine
Are you going to Scarborough Fair?
Parsley, sage, rosemary & thyme
Remember me to one who lives there
She once was a true love of mine
2. five hundred miles
if you missed the train i’m on
you will know that i am gone
you can hear the whistle blow a hundred miles
a hundred miles a hundred miles
a hundred miles a hundred miles
you can hear the whistle blow a hundred miles
lord i’m one lord i’m two
lord i’m three lord i’m four
lord i’m five hundred miles away from home
away from home away from home
away from home away from home
lord i’m five hundred miles away from home
not a shirt on my back
not a penny to my name
lord i can’t go back home this-a way
this-a way this-a way
this-a way this-a way
lord i can’t go back home this-a way
if you missed the train i’m on
you will know that i am gone
you can hear the whistle blow a hundred miles
a hundred miles
a hundred miles
a hundred miles
a hundred miles
you can hear the whistle blow a hundred miles
you can hear the whistle blow a hundred miles
you can hear the whistle blow a hundred miles
加州旅馆 Hotel California
Hotel California
On a dark desert highway, cool wind in my hair
Warm smell of colitas, rising up through the air
Up ahead in the distance, I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
There she stood in the doorway;
I heard the mission bell
And I was thinking to myself, “This could be Heaven or this could be Hell”
Then she lit up a candle and she showed me the way
There were voices down the corridor,
I thought I heard them say…
“Welcome to the Hotel California
Such a lovely place, Such a lovely face
Plenty of rooms at the Hotel California
Any time of year, you can find it here “
Her mind is Tiffany-twisted, she got the Mercedes benz
She got a lot of pretty, pretty boys, that she calls friends
How they dance in the courtyard, sweet summer sweat.
Some dance to remember, some dance to forget
So I called up the Captain, “Please bring me my wine”
He said, ‘We haven’t had that spirit here since 1969’
And still those voices are calling from far away,
Wake you up in the middle of the night
Just to hear them say…
“Welcome to the Hotel California
Such a lovely place, Such a lovely face
They living it up at the Hotel California
What a nice surprise, bring your alibis”
Mirrors on the ceiling, The pink champagne on ice
And she said ‘We are all just prisoners here, of our own device’
And in the master’s chambers, They gathered for the feast
They stab it with their steely knives,
But they just can’t kill the beast
Last thing I remember, I was running for the door
I had to find the passage back to the place I was before
‘Relax,’ said the night-man,” We are programmed to receive.
You can checkout any time you like,
but you can never leave!”
刘德华-我和我追逐的梦
1. 我和我追逐的梦
飘流已久
在每个港口只能稍作停留
喜乐和哀愁今生不能由我
任风带我 停停走走
孤独依旧
多希望你能靠在我的胸口
却不愿痴心得到你的温柔
人群之中装作冷漠
泪不敢流
让命运牵引着我南北西东
看世间悲欢离合难分难舍
而谁在为我守候
喔 喔 我和我追逐的梦擦肩而过
永远也不能重逢
我和我追逐的梦一再错过
只留下我独自寂寞
却不敢回头
孤独依旧
多希望你能靠在我的胸口
却不愿痴心得到你的温柔
人群之中装作冷漠
泪不敢流
让命运牵引着我南北西东
看世间悲欢离合难分难舍
而谁在为我守候
喔 喔 我和我追逐的梦擦肩而过
永远也不能重逢
我和我追逐的梦一再错过
只留下我独自寂寞
却不敢回头
我和我追逐的梦擦肩而过
永远也不能重逢
我和我追逐的梦一再错过
只留下我独自寂寞
却不敢回头
2. 来生缘
寻寻觅觅
在无声无息中消逝
总是找不到回忆
找不到曾被遗忘的真实
一生一世的过去
你一点一滴的遗弃
痛苦痛悲痛心痛恨痛失去你
也许分开不容易
也许相亲相爱不可以
痛苦痛悲痛心痛恨痛失自己
情深缘浅不得意
你我也知道去珍惜
只好等在来生里
再踏上彼此故事的开始
生生世世
在无穷无尽的梦里
偶而翻起了日记
翻起了你我之间的故事
一段一段的回忆
回忆已经没有意义
痛苦痛悲痛心痛恨痛失去你
也许分开不容易
也许相亲相爱不可以
痛苦痛悲痛心痛恨痛失自己 oh
情深缘浅不得意
你我也知道去珍惜
只好等在来生里
再踏上彼此故事的开始
生生世世
在无穷无尽的梦里
偶而翻起了日记
翻起了你我之间的故事
一段一段的回忆
回忆已经没有意义
痛苦痛悲痛心痛恨痛失去你
也许分开不容易
也许相亲相爱不可以
痛苦痛悲痛心痛恨痛失自己 oh
情深缘浅不得意
你我也知道去珍惜
只好等在来生里
再踏上彼此故事的开始
只好等在来生里
再踏上彼此故事的开始
3. 恭喜发财
我恭喜你发财
我恭喜你精彩
最好的请过来
不好的请走开
礼多人不怪
我祝
满天下的女孩
嫁一个好男孩
俩小口永远在一块
我祝
满天下的小孩
聪明胜过秀才
智商充满你脑袋
我祝
尊敬的姑奶奶
三十六圈的比赛
气不喘面容不改
我祝
三叔公的买卖
生意扬名四海
财运亨通住豪宅
大摇大摆
乐天替你消灾
恭喜发财
要喊得够豪迈
恭喜发财
我恭喜你发财
我恭喜你精彩
最好的请过来
不好的请走开
礼多人不怪
我祝
大家笑口常开
用心把爱去灌溉
明天呀我们更厉害
我祝
在世界的舞台
跑得比那黑人更快
岁岁年年出人才
大摇大摆
乐天替你消灾
恭喜发财
要喊得够豪迈
我恭喜你发财
我恭喜你精彩
最好的请过来
不好的请走开
礼多人不怪
我恭喜你发财
我恭喜你精彩
最好的请过来
不好的请走开
礼多人不怪
恭喜发财
4. 爱你一万年
地球自转一次是一天
那是代表多想你一天
真善美的爱恋
没有极限 也没有缺陷
地球公转一次是一年
那是代表多爱你一年
恒久的地平线
和我的心 永不改变
爱你一万年
爱你经得起考验
飞越了时间的局限
拉近地域的平面
紧紧的相连
地球公转一次是一年
那是代表多爱你一年
恒久的地平线
和我的心 永不改变
爱你一万年
爱你经得起考验
飞越了时间的局限
拉近地域的平面
紧紧的相连
有了你的出现
有了你的出现
占据了一切我的视线
爱你一万年
爱你经得起考验
飞越了时间的局限
拉近地域的平面
紧紧相连
爱你一万年
爱你经得起考验
飞越了时间的局限
拉近地域的平面
紧紧的相连
我爱你一万年
5. 忘情水
曾经年少爱追梦
一心只想往前飞
行遍千山和万水
一路走来不能回
蓦然回首情已远
身不由己在天边
才明白爱恨情仇
最伤最痛是后悔
如果你不曾心碎
你不会懂得我伤悲
当我眼中有泪
别问我是为谁
就让我忘了这一切
啊给我一杯忘情水
换我一夜不流泪
所有真心真意
任它雨打风吹
付出的爱收不回
给我一杯忘情水
换我一生不伤悲
就算我会喝醉
就算我会心碎
不会看见我流泪
曾经年少爱追梦
一心只想往前飞
行遍千山和万水
一路走来不能回
蓦然回首情已远
身不由己在天边
才明白爱恨情仇
最伤最痛是后悔
如果你不曾心碎
你不会懂得我伤悲
当我眼中有泪
别问我是为谁
就让我忘了这一切
啊给我一杯忘情水
换我一夜不流泪
所有真心真意
任它雨打风吹
付出的爱收不回
给我一杯忘情水
换我一生不伤悲
就算我会喝醉
就算我会心碎
不会看见我流泪
啊给我一杯忘情水
换我一夜不流泪
所有真心真意
任它雨打风吹
付出的爱收不回
给我一杯忘情水
换我一生不伤悲
就算我会喝醉
就算我会心碎
不会看见我流泪
就算我会喝醉
就算我会心碎
不会看见我流泪
解决ubuntu20.*在笔记本电脑上休眠耗电问题,并起不来的问题
linux suspend mode
linux 有多种suspend模式,其中这里需要关注的是S3(suspend-to-ram)和S4(suspend-to-disk)模式,S3模式下仅有ram保持供电,恢复速度较快,而S4模式下会在休眠时将ram dump到磁盘中(放在专门的swap分区或者swap文件中),休眠期间基本不消耗电力,唤醒时再从磁盘中将ram内容恢复出来,此时唤醒速度会慢于S3,具体时间取决于ram大小和ram与disk之间的传输性能。
一般情况下S3模式已经足够,但希望较为彻底改善休眠续航的问题,则还是需要使用S4模式,即hibernate mode
1. 确认S3模式可用
1 | $ sudo apt install pm-utils |
2. 确认S4模式可用
1 | $ sudo apt install pm-utils |
如果可以成功进入S4模式,则笔记本会自动息屏,同时按下电源键可以唤醒, 如果不能够成功休眠,使用
1 | $ sudo dmesg | grep PM |
应该可以查看是否进入hibernate
成功或者失败,如果显示fail,则需要使能S4模式
3. 使能S4待机模式
S4模式需要swap partition或者swap file的支持,目前新的ubuntu版本默认都是使用swap file,位于/swapfile
, S4模式需要swapfile的大小不小于ram大小。
通过设置swapfile来使能S4模式,请看[通过设置swaptfile来使能hibernamte模式](Hibernate and resume from a swap file - Ask Ubuntu)
完成后,再进行
1 | $ sudo pm-hibernate # 进入hibernate验证。这时要按电源键开机。 |
如果成功了则
1 | $ seervice systemd-hibernate start |
streamlit学习笔记五-----多个小部件分组
默认情况下,每次用户与您的streamlit应用(表单)交互时,Streamlit 都会重新运行您的脚本。然而,有时在实际重新运行脚本之前等待一组相关的小部件(表单项)被填充完后,再执行更好,这里st.form()诞生了。
格式
st.form(key: str, clear_on_submit: bool = False)
key: 字符串,表示这个表单的标识
clear_on_submit:布而值,如果为 True,则在用户按下提交按钮后,表单内的所有小部件都将重置为其默认值。
一 with用法
1 | with st.form("my_form"): |
二 指名用法
1 |
|
flask打开Excel文件,并传给luckysheet显示
flask是个很好的网站框架,luckysheet的是一个很好的采用JS编写的表格框架,由于我一直采用flask,没有学习过javascript,所以想利用方便的lucksheet,如何结合呢?
1 | #coding:utf8 |
streamlit学习笔记四-----暂称为组件吧
创建静态组件
如果您创建 Streamlit 组件的目标仅仅是显示 HTML 代码或从 Python 可视化库中呈现图表,Streamlit 提供了两种方法来极大地简化流程:components.html() 和 components.iframe()。
渲染一个 HTML 字符串用:
1
streamlit.components.v1.html(html, width=None, height=None, scrolling=False)
html (str) – 要嵌入 iframe 的 HTML 字符串。注意是字符串,如果是文件名,则会出错
width (int) – 以 CSS 像素为单位的框架宽度。 默认为报告的默认元素宽度。
height (int) – 以 CSS 像素为单位的框架高度。 默认为 150。
scrolling (bool) – 如果为 True,则在内容大于 iframe 时显示滚动条。 否则,不显示滚动条。 默认为假。
例子:
1 | import streamlit as st |
呈现 iframe URL用用:
1
streamlit.components.v1.iframe(src, width=None, height=None, scrolling=False)
参数
src (str) – 要嵌入的页面的 URL。
width (int) – 以 CSS 像素为单位的框架宽度。 默认为报告的默认元素宽度。
height (int) – 以 CSS 像素为单位的框架高度。 默认为 150。
scrolling (bool) – 如果为 True,则在内容大于 iframe 时显示滚动条。 否则,不显示滚动条。 默认为假。
例子:
1 | import streamlit as st |
streamlit学习笔记三-----layout
streamlit的页面能不能像写html一样的进行页面布局呢?不会css的程序员咋整呢? 有以下方法
一. 自动左右排版
我们在streamlit的演示时,streamlit hello就能看到。己经是左右分两列的布局了。这个不用做专门布局,只要在代码中加入sidebar就行。比如要把一个markdown写入左侧栏只要
把st.markdown(xxx)改为st.sidebar.markdown(xxx)就行。
二. streamlit代码形式。
1 | """ |