(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
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
| # | |
| # mkcd command | |
| # This is an improvised version of the mkcd command at http://superuser.com/questions/152794/is-there-a-shortcut-to-mkdir-foo-and-immediately-cd-into-it | |
| # This function has to be added to the ~/.bashrc file | |
| # After that you can run command like: mkdir abc, mkdir -p one/two/three | |
| # | |
| function mkcd { | |
| last=$(eval "echo \$$#") | |
| if [ ! -n "$last" ]; then | |
| echo "Enter a directory name" |
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
| // Example: | |
| // | |
| // currentPos = ExpEase.Out(currentPos, targetPos, -4.0); | |
| // | |
| // or | |
| // | |
| // ExpEase.Out2(currentPos, targetPos, -4.0); // This modifies currentPos. | |
| // | |
| using UnityEngine; |
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
| // Copyright (c) 2012 Calvin Rien | |
| // http://the.darktable.com | |
| // | |
| // This software is provided 'as-is', without any express or implied warranty. In | |
| // no event will the authors be held liable for any damages arising from the use | |
| // of this software. | |
| // | |
| // Permission is granted to anyone to use this software for any purpose, | |
| // including commercial applications, and to alter it and redistribute it freely, | |
| // subject to the following restrictions: |
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
| /* ---- MIT LICENSE ---- | |
| Copyright (c) 2011 John Gietzen | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| // Watches for changes in the URL hashbang and updates the #content pane accordingly | |
| // Also updates the hash when we click on a link | |
| function initHashChange() { | |
| // Bind an event to window.onhashchange that, when the hash changes, gets the | |
| // hash and adds the class "selected" to any matching nav link. | |
| $(window).hashchange(function(){ | |
| var hash = window.location.hash.replace( /^#!\//, '' ); | |
| if (hash == '') { return; } |
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
| $ brew install markdown htmldoc | |
| $ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
| // ------------------------------------------------------------------ | |
| // Fog helpers | |
| // | |
| // multi_compile_fog Will compile fog variants. | |
| // UNITY_FOG_COORDS(texcoordindex) Declares the fog data interpolator. | |
| // UNITY_TRANSFER_FOG(outputStruct,clipspacePos) Outputs fog data from the vertex shader. | |
| // UNITY_APPLY_FOG(fogData,col) Applies fog to color "col". Automatically applies black fog when in forward-additive pass. | |
| // Can also use UNITY_APPLY_FOG_COLOR to supply your own fog color. | |
| // In case someone by accident tries to compile fog code in one of the g-buffer or shadow passes: |
PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.
- Install the TexLive base
sudo apt-get install texlive-latex-base
- Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
OlderNewer