Skip to content

Instantly share code, notes, and snippets.

View Karmalakas's full-sized avatar

Karmalakas

  • Lithuania
  • 20:19 (UTC +03:00)
View GitHub Profile
@alasomlira
alasomlira / index.html
Created December 10, 2019 02:11
SwiperJS & YouTube
<div class="wrap">
<div class="wrap-inner">
<div class="swiper-outter">
<div id="video-swiper" class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="video-container">
<div class="yt-player" data-id="MxBRpWcXeOA"></div>
@pataiadam
pataiadam / guru.js
Last active May 4, 2021 12:18
gurushot vote refresher bookmarklet
/**
Converted Bookmarklet (by https://mrcoles.com/bookmarklet):
javascript:(function()%7B(async%20function()%20%7B%24('.expcucc').remove()%3B%24('.c-challenges-item__exposure__meter__arrow').each(function(i)%20%7B%24(this).parent().parent().prepend('%3Cdiv%20class%3D%22expcucc%22%20style%3D%22position%3A%20absolute%3B%20right%3A%200%22%3EFetching...%3C%2Fdiv%3E')%3B%7D)%3B%24('.c-challenges-item__votes__total').each(function()%20%7B%24(this).text('...')%3B%7D)%3B%24('.c-challenges-item__photos__body').each(function(i)%20%7B%24(this).children().each(function(j)%20%7B%24(this).children('.c-challenges-item__photos__photo__votes').text('...')%3B%7D)%3B%7D)%3Bconst%20resp%20%3D%20await%20(await%20fetch('https%3A%2F%2Fgurushots.com%2Frest%2Fget_member_joined_active_challenges'%2C%20%7Bheaders%3A%20%7B'x-api-version'%3A%207%2C'x-env'%3A%20'WEB'%2C'x-requested-with'%3A%20'XMLHttpRequest'%2C'x-token'%3A%20((name)%20%3D%3E%20%7Bvar%20value%20%3D%20%22%3B%20%22%20%2B%20document.cookie%3Bvar%20parts%20%3D%20value.split(
@mewben
mewben / flutter_icon_rotate.dart
Created October 30, 2019 07:03
Flutter: Rotate Icon by 90 degrees
import 'package:flutter/material.dart';
import 'dart:math';
class RotatedIcon extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Transform.rotate(
angle: 90 * pi/180,
child: Icon(Icons.flight),
);
@JohnCoates
JohnCoates / Readme.md
Last active August 23, 2021 16:54
extract PSIconsHighRes.dat & IconResources.idx - filetype: Photoshop Icon Resource Index 1.0

INSTRUCTIONS:

Put both files in a folder, then create a subfolder named "extracted". Run readPhotoshopIcons.php to extract images then run readPhotoshopIconNames.php to rename files to their correct names.

@kidatti
kidatti / clipboard_image_post_js.html
Created November 9, 2015 04:28
Upload clipboard image to server (HTML5 / JavaScript / AJAX)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>
<body>
<script>