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
| { | |
| "id": 1, | |
| "name": "foo", | |
| "city": "London", | |
| "postcode": "SW66LG", | |
| "items": [ | |
| { | |
| "name": "Pizza", | |
| "qty": 3 | |
| }, |
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
| #!/bin/bash | |
| brew update | |
| brew upgrade | |
| brew cleanup -s | |
| brew cask cleanup | |
| #now diagnotic | |
| brew doctor | |
| brew missing | |
| /opt/bin/updateCCTF.sh && terminal-notifier -message "git pull done :-)" -title "CCTF up to date" | |
| echo "you can hit mas upgrade to upgrade theses apps from the app store:" |
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
| // There are pigs and chickens on a farm. | |
| // Someone has counted the legs and heads | |
| // of all the pigs and chickens. | |
| // The task is to calculate the number | |
| // of pigs and chickens on the farm | |
| // knowing number of heads and legs. | |
| function headsAndLegs (heads, legs) { | |
| var pigs = legs / 4, chickens = 0; |
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
| require 'net/https' | |
| require 'nokogiri' | |
| class MenuSize | |
| attr_accessor :url_list | |
| def get_urls | |
| file = File.read("menus.1.xml") | |
| xml = Nokogiri::XML(file) |
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 scrollPoint($elems, fn) { | |
| function debounce(fn) { | |
| var tmid; | |
| return function debouncer() { | |
| var args = arguments, that = this; | |
| clearTimeout(tmid); | |
| tmid = setTimeout(function () { | |
| fn.apply(that, args); | |
| }, 50); |
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
| { | |
| "git.confirmSync": false, | |
| "files.autoSave": "afterDelay", | |
| "workbench.activityBar.visible": true, | |
| // "workbench.editor.enablePreview": false, | |
| "debug.inlineValues": true, | |
| "php.suggest.basic": false, | |
| // "explorer.autoReveal": false, | |
| "workbench.colorTheme": "Default Light+", | |
| "workbench.iconTheme": "file-icons-colourless", |
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
| // Place your key bindings in this file to overwrite the defaults | |
| [{ | |
| "key": "shift+cmd+]", | |
| "command": "workbench.action.nextEditor" | |
| }, { | |
| "key": "shift+cmd+[", | |
| "command": "workbench.action.previousEditor" | |
| }, { | |
| "key": "cmd+d", | |
| "command": "editor.action.copyLinesUpAction" |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Listen for XDebug", | |
| "type": "php", | |
| "request": "launch", | |
| "port": 9001, | |
| "localSourceRoot": "${workspaceRoot}/", | |
| "serverSourceRoot": "/var/www/deploy/local" |
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
| syntax on | |
| highlight Normal ctermfg=grey ctermbg=black | |
| set ruler " show the line number on the bar | |
| set more " use more prompt | |
| set autoread " watch for file changes | |
| set number " line numbers |
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
| // Examples from http://boredzo.org/pointers/ | |
| #include <stdio.h> | |
| #include <cstring> | |
| struct User { | |
| size_t size; | |
| char name[64]; | |
| int answer_to_ultimate_question; | |
| unsigned shoe_size; |