Skip to content

Instantly share code, notes, and snippets.

View bsevgin's full-sized avatar
💣
ready to explode

Bünyamin Sevgin bsevgin

💣
ready to explode
  • Istanbul, Turkey
View GitHub Profile
@bsevgin
bsevgin / marketItemsTotalPrice.js
Last active June 6, 2024 22:05
CS:GO Get Steam Market Items Total Price
var totalPrice = 0;
const elements = document.querySelectorAll('span .market_listing_price span span:last-child');
Array.from(elements).forEach((element, index) => {
var text = element.innerText;
var amount = text.replace(/\(/g, '').replace(/ USD/g, '').replace(/\)/g, '').replace(/\$/g, '');
totalPrice += parseFloat(amount);
});
console.log(totalPrice.toFixed(2));
@bsevgin
bsevgin / export_image_to_excel
Created February 28, 2018 12:13 — forked from outman/export_image_to_excel
Exprot Online Image to Excel by PHPExcel
<?php
require_once __DIR__ . '/PHPExcel/Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
// imagecreatefromXXX (XXX is jpeg png or gif)
$gdImage = imagecreatefromjpeg('http://678bt.com/PHPExcel/Tests/images/officelogo.jpg');
$objDrawing = new PHPExcel_Worksheet_MemoryDrawing();