tips-and-tricks
Here are 201 public repositories matching this topic...
You should add a tip on little known (or remembered) CSS Counters i believe.
It is supported on all major platforms, http://caniuse.com/#feat=css-counters
Here is an example: http://codepen.io/Monochrome/pen/bEMbdr
-
Updated
Apr 29, 2020
-
Updated
Jan 9, 2020
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.
-
Updated
May 24, 2020 - TypeScript
-
Updated
Nov 9, 2019 - Swift
草根程序员如何进入BAT
LZ第一个要说的,就是心态!
原因很简单,文章下面即将提到的学习内容,如果你没有一个好的心态,是不可能进行下去的。所以,先过了心态这一关,再来谈别的吧,否则你肯定会死在半路上的。
说起来,很多群里的新人都爱问LZ,“你是怎么学习的?为什么我学不进去呢?为什么我一看书就困呢?”
以上这种现象,基本上就是两个原因,第一个原因是心态浮躁,总觉得看书好像没啥用啊,看了好像还是觉得没学到什么,过不了多久就忘了。第二个原因则是目标感不强,不知道自己要达到什么程度才算可以,所以也就干脆“一瓶子不满,半瓶子晃荡”了。
针对第一个原因,说到底就是个心态问题。总想着看书能够立竿见影,从菜鸟一下子蜕变为大神,如果你老是抱着这样的心态去看书,你特么不瞌睡才是邪门了。
而第二个原因,LZ觉得有时候人要适当的激发内心的欲望,无欲无求这种高逼格的事,等你七老八十了再说,现在趁着年轻,心中有
-
Updated
Sep 14, 2016 - Java
In your example when you remove the ink it still has the same behavior.
a better example would be the one from the docs
Material(
color: Colors.teal[900],
child: Center(
child: Ink(
color: Colors.yellow,
width: 200.0,
height: 100.0,
child: InkWell(
onTap: () { /* ... */ },
child: Center(
child: Text('YELLOW'),
-
Updated
Jan 12, 2018
-
Updated
May 15, 2020 - Shell
-
Updated
May 5, 2020 - Jupyter Notebook
-
Updated
Feb 16, 2020 - Jupyter Notebook
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-
Updated
Apr 10, 2018
-
Updated
Aug 22, 2019
-
Updated
Apr 1, 2019 - Shell
-
Updated
Jun 20, 2018 - C#
-
Updated
May 15, 2020 - HTML
-
Updated
Nov 12, 2019 - JavaScript
-
Updated
Apr 30, 2019
-
Updated
May 23, 2020 - HTML
-
Updated
Mar 27, 2017
-
Updated
Apr 30, 2020 - C#
-
Updated
Aug 20, 2019
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.
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."


Currently:
Undo local changes with the last content in head
git checkout -- <file_name>
Should be:
Undo local changes with the content in index(staging)
git checkout -- <file_name>
Reference: https://git-scm.com/docs/git-checkout
Examples: git checkout hello.c
restore hello.c from the index