The Wayback Machine - https://web.archive.org/web/20200524161857/https://github.com/topics/tips-and-tricks
Skip to content
#

tips-and-tricks

Here are 201 public repositories matching this topic...

v01d
v01d commented Mar 19, 2019

I had a journal request that your final PDF should not contain Type 1 fonts and in my case the culprit were matplotlib figures. I found that with this setting in ~/.config/matplotlib/matplotlibrc
you can make matplotlib avoid Type 1 fonts:

ps.useafm : True
pdf.use14corefonts : True
text.usetex : True

Maybe you consider this useful and can add it here somewhere.

lietoumai
lietoumai commented Oct 26, 2017

LZ第一个要说的,就是心态!

原因很简单,文章下面即将提到的学习内容,如果你没有一个好的心态,是不可能进行下去的。所以,先过了心态这一关,再来谈别的吧,否则你肯定会死在半路上的。

说起来,很多群里的新人都爱问LZ,“你是怎么学习的?为什么我学不进去呢?为什么我一看书就困呢?”

以上这种现象,基本上就是两个原因,第一个原因是心态浮躁,总觉得看书好像没啥用啊,看了好像还是觉得没学到什么,过不了多久就忘了。第二个原因则是目标感不强,不知道自己要达到什么程度才算可以,所以也就干脆“一瓶子不满,半瓶子晃荡”了。

针对第一个原因,说到底就是个心态问题。总想着看书能够立竿见影,从菜鸟一下子蜕变为大神,如果你老是抱着这样的心态去看书,你特么不瞌睡才是邪门了。

而第二个原因,LZ觉得有时候人要适当的激发内心的欲望,无欲无求这种高逼格的事,等你七老八十了再说,现在趁着年轻,心中有

Data Science Hacks consists of tips, tricks to help you become a better data scientist. Data science hacks are for all - beginner to advanced. Data science hacks consist of python, jupyter notebook, pandas hacks and so on.

  • Updated May 5, 2020
  • Jupyter Notebook
jecisc
jecisc commented Jun 6, 2019

Today I was doing a lot of changes on some variables in a deep hierarchy.

Current Pharo tools allow developers to find accesses to a variable in a class but not in a hierarchy so I had to make this snippet:

origin := AbstractWidgetPresenter.
variableName := #borderColor.
(origin slots detect: [ :e | e name = variableName ]) usingMethods collect: #methodClass as: Set

Improve this page

Add a description, image, and links to the tips-and-tricks topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the tips-and-tricks topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.