Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| $(function(){ | |
| //Lazyload function | |
| $.fn.lazyload = function(){ | |
| var image = $(this); | |
| if (image.attr('real-src')){ | |
| image.attr('src', image.attr('real-src')); | |
| image.removeAttr('real-src'); | |
| } | |
| return this; |
| <?php | |
| class Link extends LinkCore | |
| { | |
| /** | |
| * Returns a link to a product image for display | |
| * Note: the new image filesystem stores product images in subdirectories of img/p/ | |
| * | |
| * @param string $name rewrite link of the image | |
| * @param string $ids id part of the image filename - can be "id_product-id_image" (legacy support, recommended) or "id_image" (new) | |
| * @param string $type |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related tutorial: http://cli.learncodethehardway.org/book/
CodeCademy: https://www.codecademy.com/courses/learn-the-command-line
Official cheatsheet: http://cd64.de/linux
Note: Hold option (alt) and click a position in the current line to move your cursor to that position.
| alias.checkin=!git add -A && git commit -m | |
| alias.up=push origin master | |
| alias.editconfig=config --global -e | |
| alias.history=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| alias.l=log --oneline --decorate | |
| alias.lga=log --graph --oneline --all --decorate | |
| alias.s=status | |
| alias.update=!git pull --rebase --prune $@ && git submodule update --init --recursive | |
| alias.webui=!/python.exe /c/Users/sembug/.git-webui/release/libexec/git-core/git-webui | |
| core.editor='c:/Program Files/Sublime Text 3/sublime_text.exe' -w |
One of the simplest and most widely known ciphers is a Caesar cipher, also known as a shift cipher. In a shift cipher the meanings of the letters are shifted by some set amount. A common modern use is the ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O' and so on. Write a function which takes a ROT13 encoded string as input and returns a decoded string. All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.
function convertToCesarCipher(str) {
return str;
}
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://fb.me/react-15.1.0.js"></script> | |
| <script src="https://fb.me/react-dom-15.1.0.js"></script> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| .js-add-photo-button { |
| using SuperWebSocket; | |
| using System; | |
| using System.Threading; | |
| namespace ConsoleWebSocket | |
| { | |
| public class Program | |
| { | |
| private static WebSocketServer webSocketServer; | |
| public static void Main(string[] args) |