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
Show hidden characters
| [ | |
| { | |
| "keys": ["alt+`"], | |
| "command": "toggle_terminus_panel" | |
| }, | |
| { | |
| "keys": ["ctrl+alt+t"], | |
| "command": "terminus_open", | |
| "args": { | |
| "cwd": "${file_path:${folder}}", |
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
| " My .vimrc file. | |
| " set line numbers | |
| set number relativenumber | |
| " set syntax highlight | |
| syntax on | |
| " set tabsize to 4 | |
| set tabstop=4 |
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
| /* | |
| To build | |
| g++ crypt.cpp -o crypt.exe -std=c++11 -Wall -Wextra -O2 | |
| */ | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <array> | |
| #include <vector> | |
| #include <set> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta name="author" content="Animesh Ghosh"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="theme-color" content="#24292e"> | |
| <title>GitHub API Wrapper</title> | |
| <style type="text/css"> | |
| /* designing for mobile first */ |
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
| import timeit | |
| def main(): | |
| f = open('sum.py') | |
| program = f.readlines() | |
| f.close() | |
| if __name__ == '__main__': | |
| # takes ~17 seconds on i5 4440 @ 3.1 GHz with 8 GB DDR3 @ 1333 MHz | |
| print(timeit.timeit(main, number=100000)) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Animated SVG!</title> | |
| <style type="text/css"> | |
| *, ::before, ::after { | |
| margin: 0; | |
| padding: 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
| #include <bits/stdc++.h> | |
| using namespace std; | |
| ostream& operator<<(ostream& os, const vector<int>& v) { | |
| for (const int& x : v) { | |
| os << x; | |
| } | |
| return os; | |
| } |
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
| -- count till n | |
| WITH RECURSIVE count_cte AS ( | |
| SELECT 1 AS n -- anchor member | |
| UNION | |
| SELECT n + 1 -- recursive member | |
| FROM count_cte WHERE n < 10 | |
| ) SELECT * FROM count_cte; | |
| -- factorial | |
| WITH RECURSIVE fact_cte AS ( |
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
| { | |
| "info": { | |
| "_postman_id": "8eb00015-dbbe-4627-893b-d5bf948414e8", | |
| "name": "Django Knuckle Snapper", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
| }, | |
| "item": [ | |
| { | |
| "name": "Login", | |
| "request": { |
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
| /** | |
| * @classdesc a class for doing common Matrix operations | |
| * | |
| */ | |
| class Matrix { | |
| /** | |
| * @param {Array} array a 2d array | |
| */ | |
| constructor(array) { | |
| let numberOfColumns = array[0].length |
OlderNewer