A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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
| // injection technique borrowed from http://stackoverflow.com/questions/840240/injecting-jquery-into-a-page-fails-when-using-google-ajax-libraries-api | |
| window.onload = function () { | |
| var script = document.createElement("script"); | |
| script.src = "https://code.jquery.com/jquery-3.3.1.min.js"; | |
| script.onload = script.onreadystatechange = function () { | |
| $(document).ready(function() { | |
| $("#lst-ib").val("Hello, World!"); | |
| }); | |
| }; | |
| document.body.appendChild(script); |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
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
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <limits.h> | |
| #include <float.h> | |
| int main(int argc, char** argv) { | |
| printf("CHAR_BIT : %d\n", CHAR_BIT); | |
| printf("CHAR_MAX : %d\n", CHAR_MAX); |
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
| HTML - Hypertext Markup Language - The Language of the Web | |
| (Used to structure content and reflect its meaning in form of Code) | |
| Note: Do not use HTML for presentational Purposes. Leave that to the CSS. As HTML5 has evolved, it's pretty clear, HTML is not for make-up. | |
| HTML - Structure | CSS - Beautification | Javascript - Action Handling | |
| Hypertext - non linear text with Hyperlinks | |
| Markup - code used to define and structure text | |
| ** Not a Programming Language |
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
| Share URLs: http://petragregorova.com/articles/social-share-buttons-with-custom-icons/ |
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
| Search if a package is installed | |
| (requires full package name) | |
| apt-cache policy <package name> -- Returns package name(Installed, candidate, Version) | |
| dpkg -l | grep <package name> -- Returns package name and basic description if installed | |
| aptitude show <package name> -- Gives full description | |
| Or dpkg-query -s <pkg> -- Gives full description | |
| (doesn't requires full package name) | |
| apt-cache search <pkg> |
NewerOlder