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
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;; VARIABLES | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| (set-variable 'ycmd-extra-conf-whitelist '("/Users/anujjamwal/CLionProjects/bazel-compilation-database-0.2.3/.ycm_extra_conf.py")) | |
| (set-variable 'ycmd-global-config "/Users/anujjamwal/CLionProjects/bazel-compilation-database-0.2.3/.ycm_extra_conf.py") | |
| (set-variable 'ycmd-server-command '("/usr/local/bin/python3" "/Users/anujjamwal/Projects/ycmd/ycmd")) | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| '.source.erlang': | |
| 'Gen Server': | |
| 'prefix': 'gen_server' | |
| 'body': """ | |
| %%%------------------------------------------------------------------- | |
| %%% @author Anuj Jamwal <> | |
| %%% @copyright (C) | |
| %%% @doc | |
| %%% |
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
| PROJECT_DIRECTORIES=() | |
| setup_project_shortcuts () | |
| { | |
| clear_project_shortcuts | |
| set_cd_shortcut $1 | |
| for D in $(find $1 -mindepth 1 -maxdepth 1 -type d) | |
| do | |
| set_cd_shortcut $D |
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 int denomination(int sum, int coins[]) { | |
| int denominations[] = new int[sum+1]; | |
| for(int i = 1; i <= sum; i++) denominations[i] = sum+1; | |
| for(int coin: coins) denominations[coin] = 1; | |
| for(int i = 1; i <= sum; i++) { | |
| for(int j=0; j<coins.length; j++) { | |
| if (i - coins[j] < 0) continue; | |
| denominations[i] = min(denominations[i - coins[j]] + 1, denominations[i]); |
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 int minimalPalindromes(String string) { | |
| return minimalPalindromes(string, 0, string.length()-1); | |
| } | |
| private int minimalPalindromes(String string, int start, int end) { | |
| if(isPalindrome(string, start, end)) return 0; | |
| int count = string.length()+1; | |
| for(int k = start; k <= end; k++) { |
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
| [user] | |
| name = Anuj Jamwal | |
| email = anuj@email | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls | |
| smtpserver = smtp.gmail.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
| 1. Drag "Network Connect.app" to Trash. | |
| 2. In terminal, run these two commands: | |
| sudo sh /usr/local/juniper/nc/install/uninstall_nc.sh | |
| sudo rm -fr /usr/local/juniper |
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
| var http = require('http'); | |
| var uri = require('url'); | |
| http.createServer(function(request, response) { | |
| var request_method = request.method, | |
| url = uri.parse(request.url).pathname, | |
| headers = request.headers; | |
| console.log("proxy request "+request_method+" "+ request.url+ " "+headers['host']); | |
| var options = { |
NewerOlder