In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TransformingMatcher<U, T> extends TypeSafeMatcher<U> { | |
| private final Matcher<T> base; | |
| private final Function<? super U, ? extends T> function; | |
| public TransformingMatcher(Matcher<T> base, Function<? super U, ? extends T> function) { | |
| this.base = base; | |
| this.function = function; | |
| } | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install libgnome-keyring-dev | |
| cd /usr/share/doc/git/contrib/credential/gnome-keyring | |
| sudo make | |
| sudo ln -s /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring /usr/lib/git-core/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Define your components like: | |
| class MyComponent extends React.Component { | |
| static fetchData = (params) => { | |
| // return an action here. | |
| }; | |
| /* ... */ | |
| } | |
| function fetchComponentData(component, store, params) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function LRU(limit) { | |
| this.limit = limit || 1000; | |
| this.map = new Map(); | |
| } | |
| LRU.prototype.has = function(key) { | |
| return this.map.has(key); | |
| } | |
| LRU.prototype.set = function(key, value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Name=Postman | |
| Exec=postman | |
| Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png | |
| Terminal=false | |
| Type=Application | |
| Categories=Development; |
Install fonts:
- Bitstream Vera
- Noto Color Emoji
We set these fonts as the fallbacks, bitstream has the normal characters, Noto has the emoji
We don't want DejaVu to be used as a fallback, as this has overriding emoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.github.sandornemeth.spring; | |
| import java.util.Arrays; | |
| import java.util.stream.StreamSupport; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.context.event.ContextRefreshedEvent; | |
| import org.springframework.context.event.EventListener; | |
| import org.springframework.core.env.AbstractEnvironment; |
Add this helper function to your ~/.bash_profile (or ~/.bashrc, or whatever you use) to create custom short links for your GitHub projects without having to remember the whole cURL command!
If you use a file other than ~/.bash_profile to configure your terminal, substitute that value in the installation instructions below.
- Open your
~/.bash_profile - Copy-paste the
gitlinkfunction into it