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
function flexToBlock(){ | |
$('*').each(function(index,el){ | |
if($(el).css("display") === "flex"){ | |
console.log($(el).css("display")); | |
$(el).css("display","block"); | |
} | |
}); | |
} |
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
name: Insert Image | |
description: Inserts an image to the current slide. | |
author: vinaymavi | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: |+ | |
$('#insert').click(run); | |
function run() { |
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
name: Get file meta | |
description: Get a file meta information. | |
author: vinaymavi | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: |- | |
$("#get-slide-metadata").click(getSlideMetadata); | |
function getSlideMetadata() { |
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
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
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
import { mount} from 'enzyme'; | |
beforeAll(()=>{ | |
const div = document.createElement('div'); | |
window.domNode = div; | |
document.body.appendChild(div); | |
}) | |
test("Test component with mount + document query selector",()=>{ | |
const wrapper = mount(<YourComponent/>,{ attachTo: window.domNode }); | |
}); |
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
[user] | |
name = Pavan Kumar Sunkara | |
email = pavan.sss1991@gmail.com | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[push] | |
default = matching |
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
function my_password(password_string){ | |
var new_string = []; | |
new_string.push(password_string.charCodeAt(0)); | |
new_string.push(password_string.trim()); | |
new_string.push(password_string.charCodeAt(password_string.length-1)); | |
return btoa(new_string.join('')); | |
} | |
var password_string = '<your string>' | |
console.log(my_password(password_string)); |
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 functions = require("firebase-functions"); | |
const puppeteer = require("puppeteer"); | |
const Crawler = require("./crawler"); | |
const Firestore = require("./firebasestore"); | |
const constraint = require("./crawler/constraint"); | |
const COLLECTION_NAME = 'rows1'; | |
const rowsCol = new Firestore(COLLECTION_NAME); | |
// Error = "Possible EventEmitter memory leak detected. 11 SIGINT listeners added" solutions | |
process.setMaxListeners(Infinity); | |
exports.betaRowListener = functions.firestore |
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 base_config = { | |
message: "Server started with base configuration", | |
base_path: "https://baseapi.com/", | |
end_points: { | |
user: "/user", | |
auth: "/auth", | |
token_refresh: "/token-refresh" | |
} | |
}; | |
module.exports = base_config; |
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 base_config = require("./base.config"); | |
const development_config = { | |
message: "Server started with development configuration", | |
base_path: "https://developmentapi.com/" | |
}; | |
const updated_config = Object.assign(base_config,development_config); | |
module.exports = updated_config; |
OlderNewer