学习得到了什么
有人问:“你总是在学习,通过学习,最终得到了什么?” 答:“什么都没有得到。” 他再问:“那您还学习做什么呢?” 微笑:“不过我可以告诉你我失去的东西。我失去愤怒、纠结、狭隘、挑剔和指责、悲观和沮丧;失去了肤浅、短视;失去了无知、干扰和障碍。” 学习的真谛不是做加法,而是做减法;提升的目的不是为了得到,而是放弃迷妄,剔除怒恨怨恼烦和贪嗔痴慢疑!
Technical articles and tutorials for developers
有人问:“你总是在学习,通过学习,最终得到了什么?” 答:“什么都没有得到。” 他再问:“那您还学习做什么呢?” 微笑:“不过我可以告诉你我失去的东西。我失去愤怒、纠结、狭隘、挑剔和指责、悲观和沮丧;失去了肤浅、短视;失去了无知、干扰和障碍。” 学习的真谛不是做加法,而是做减法;提升的目的不是为了得到,而是放弃迷妄,剔除怒恨怨恼烦和贪嗔痴慢疑!
Closures are self-contained blocks of functionality that can be passed around and used in your code. Closures in Swift are similar to blocks in C and Objective-C and to lambdas in other programming languages.
Closures can capture and store references to any constants and variables from the context in which they are defined. This is known as closing over those constants and variables. Swift handles all of the memory management of capturing for you.
NOTE
Don’t worry if you are not familiar with the concept of capturing. It is explained in detail below in Capturing Values.
Like Merge Sort, QuickSort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot. There are many different versions of quickSort that pick pivot in different ways.
The key process in quickSort is partition(). Target of partitions is, given an array and an element x of array as pivot, put x at its correct position in sorted array and put all smaller elements (smaller than x) before x, and put all greater elements (greater than x) after x. All this should be done in linear time.
Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, though it is possible to remove and add the modified value of that element. Some basic functions associated with Set:
Git commands are an essential lesson that every developer needs to master at some point. To use the full potential of Git, the popular version control system, you need to know how to use Git commands.
In this tutorial, you will find all the commonly used Git commands as well as a downloadable cheat sheet.
git init [directory]
git clone [repo / URL]
git clone [repo / URL] [folder]
git config --global user.name "[your_name]"
To login (from unix shell) use -h only if needed.
[mysql dir]/bin/mysql -h hostname -u username -p password
To login (from windows)
[mysql dir]/bin/mysql.exe -h hostname -u username -p password
Create a database.
mysql> create database [databasename];
List all databases on the server.
mysql> show databases;
Switch to a database.
mysql> use [db name];
职场素养是一个很抽象的概念,什么才叫有职场素养呢?
上班不迟到,下班不早退,愿意加班,有情商,这就算有职场素养了么?
我自己创业这几年,招聘过一些员工,也炒掉过一些人;
我发现职场人,只要在三个方面足够优秀,就可以往管理层方向走了,至少升职加薪是一定的。
职场素养=执行力+创造力+责任心
要说最让人讨厌的低情商的沟通方式,讲道理一定位居前列。
前两天在工作中遇到了一个难搞的合作方,把我气得快要崩盘了,一下班立马约了个朋友,想跟她吐槽一下。
结果刚坐下来点了杯奶茶,我开始吐槽不到2分钟,朋友就打断了我,语重心长地说了一大段话,大概的意思是:
在职场上你应该更加专业一点,不要那么情绪化;越是面对这样的人,你就越不能生气,他就得逞了;你要硬气一点,不要让他觉得女人在职场那么好欺负……
听完这段话后,我吸了一大口冰奶茶,什么都不想再说了。
摘自:《曾国藩传》
有这样一个故事说明曾国藩读书的勤奋。
一天,曾国藩在家背书,可有一篇文章就是背不下来。这时有 个贼正潜伏在他的屋檐下,准备等他背完睡觉后动手行窃。可曾国藩因一直背不下来,就不去睡觉。贼等不及了,跳起来大怒道:“你这个笨蛋,背了这么多遍还背不下来,我都听会了!”说完,那个贼果然背诵一遍,然后扬长而去。 贼虽然比曾国藩记忆力好,但他只配做贼,而曾国藩虽然当时没有背下来文章,但后来却成了杰出人物。
摘自:[逻辑思维]
话说战国的时候有一桩悬案。荆轲刺秦王的时候,需要带一个助手。找来找去,找到了燕国的秦舞阳。
为啥找他呢?因为据说他12岁当街杀人,满街的人都不敢看他一眼,你想,这是多大的杀气?
可是,等到荆轲带着秦舞阳见到秦王的时候,秦舞阳“色变振恐”,吓尿裤子了。奇怪,原来挺有勇气的一个人,怎么事到临头就怂了呢?