Skip to content

Instantly share code, notes, and snippets.

Royi Namir RoyiNamir

Block or report user

Report or block RoyiNamir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 2.1
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AWSProjectType>Lambda</AWSProjectType>
</PropertyGroup>
<ItemGroup>
<None Remove="appsettings.json" />
</ItemGroup>
<ItemGroup>
View 1
console.log('Loading function');
var AWS = require('aws-sdk');
var dynamo = new AWS.DynamoDB.DocumentClient();
exports.handler = async (event, context, callback) =>
{
View settings.json
"workbench.colorCustomizations": {
//"editor.selectionBackground": "#13ff0b83",
"editor.selectionHighlightBackground": "#13ff0b9a",
"editor.lineHighlightBackground": "#2b373a70",
"editor.wordHighlightBackground": "#13ff0b9a",
"editor.findMatchHighlightBackground": "#00ecfdb0",
"editor.wordHighlightStrongBackground": "#f812c68f", // syntax variable assignment
View menu.component.ts
ment';
get isLoggedIn(): boolean {
return this.authService.isLoggedIn();
}
get userName(): string {
if (this.authService.currentUser) {
View asd
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
namespace ConsoleApp2.Models
{
public partial class MyContext : DbContext
{
public MyContext()
{
View ImageResizer.ts
//Install express server2
import express from 'express';
import * as url from 'url';
const sharp = require('sharp');
var request = require('request');
export {};
var cors = require('cors');
View server3-with-login.ts
import puppeteer, {ElementHandle, Page} from "puppeteer";
import {LOGIN_URL, USER} from "./models/consts";
import {IUser} from "./models/i-user";
const getPropAsync = async (elementHandle: ElementHandle, propertyName: string) =>
{
let href = await elementHandle.getProperty(propertyName);
return await (await elementHandle.getProperty(propertyName)).jsonValue();
};
View puppeeter
import puppeteer, {ElementHandle} from "puppeteer";
const getPropAsync = async (elementHandle: ElementHandle, propertyName: string) =>
{
let href = await elementHandle.getProperty(propertyName);
return await (await elementHandle.getProperty(propertyName)).jsonValue();
};
const getElementsAsync = (async (selector: string, section: ElementHandle | null, propertyName: string | null, page) =>
{
let cubes: ElementHandle[] = [];
View server2.ts
import puppeteer, {ElementHandle} from "puppeteer";
(async () =>
{
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
let url = "https://www.mutualart.com/Artists";
console.log(`Fetching page data for : ${url}...`);
await page.goto(url);
View gist:5f48b227ebad1429648d3efb061c369d
https://www.mutualart.com/Artist/Artur-Alipio-Barrio-de-Sousa-Lopes/D9BCAAB7A1440FC0
https://www.mutualart.com/Artist/Imero-Gobbatto/EFC5D90ECFC7942F
https://www.mutualart.com/Artist/Luis-Cuevas/F8E220A318E7A196
https://www.mutualart.com/Artist/Jean-Claude-Mahey/10FD76CA56B67CDD
https://www.mutualart.com/Artist/Clifford-Baldwin/B11A1A15B0755750
https://www.mutualart.com/Artist/Chr--F--Beck/0A8F727D09B58A30
https://www.mutualart.com/Artist/Jean-Jules-Louis-Cavailles/9887AB5416F975A9
https://www.mutualart.com/Artist/Josef-Lorenzl/CB908AFC1E8CAD3C
https://www.mutualart.com/Artist/Marcantonio-Raimondi/B41F62C6D01366B8
https://www.mutualart.com/Artist/Domenico-di-Pace-Beccafumi/EAAA905D599C7447
You can’t perform that action at this time.