C:\Users\Administrator>ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
C:\Users\Administrator>gem list bcrypt
*** LOCAL GEMS ***
bcrypt (3.1.11 x64-mingw32)
This file contains 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 the gist to give the color to your code you want to show on the website. | |
* Use this raw link to import this file to your project. | |
* | |
* @import 'https://gist.githubusercontent.com/mittalyashu/f0cfea0d91edc2f5931dff1a5f6cadd0/raw/8cba80a4f2c077a65ef4b621b898d836c49cb99c/syntax.css'; | |
*/ | |
.highlight { background: #ffffff; } | |
.highlight .c { color: #999988; font-style: italic } /* Comment */ | |
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ |
#Markdown Cheatsheet Markdown is a short-hand syntax for easily converting text to HTML. Below are some popular examples of Markdown formatting. For more examples reference Markdown Basics for a more detailed overview.
Links This is an example link
Code Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.
```html
I hereby claim:
- I am mittalyashu on github.
- I am mittalyashu (https://keybase.io/mittalyashu) on keybase.
- I have a public key ASAjhv-wcuCHqWCMkIJZ2Jjmgp0TN6c_SKjvRxJ7QqxGGgo
To claim this, I am signing this object:
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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
/** | |
* A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
* | |
* Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
* the blur parameter has to be doubled. | |
* | |
* Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) | |
* | |
* Example usage: |
This file contains 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
from pdf2image import convert_from_path | |
pdf_file_path = "path/to/pdf" | |
first_page = 16 | |
last_page = 24 | |
pages = convert_from_path(pdf_file_path, dpi=200, first_page=first_page, last_page=last_page, size=(3000, None)) | |
page_count = first_page | |
for page in pages: |
This file contains 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
exports.idGenerator = () => { | |
return ( | |
Math.random() | |
.toString(32) | |
.substr(2) + | |
Math.random() | |
.toString(32) | |
.substr(2) | |
); | |
}; |
This file contains 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
const { buildASTSchema } = require("graphql"); | |
const { mergeTypeDefs } = require("@graphql-tools/merge"); | |
// schema | |
const mutationOutput = require("./mutationOutput"); | |
const book = require("./types/book"); | |
const chapter = require("./types/chapter"); | |
const genre = require("./types/genre"); | |
const blog = require("./types/blog"); |
OlderNewer