Skip to content

Instantly share code, notes, and snippets.

View zhuharev's full-sized avatar
🏠
Working from home

Kirill Zhuharev zhuharev

🏠
Working from home
View GitHub Profile
@macbookandrew
macbookandrew / findStyles.js
Last active March 30, 2024 15:24
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*
@lsissoko
lsissoko / instagram-file-download.md
Last active December 7, 2017 12:24
How to download an image/video from an Instagram post.

Simple way to get an Instagram post's media source.

  1. Go to the page you want to download from.

  2. Open your browser's dev console (e.g. Ctrl+Shift+J in Chrome on Windows/Linux).

  3. Run the following code in the console to print the image/video URL to the console.

    $('.lfFrame.Frame.Image').attr('src')          // image (option 1)
    $('meta[property="og:image"]').attr('content') // image (option 2)
@DavidVaini
DavidVaini / round.go
Created April 9, 2014 19:58
Arggh Golang does not include a round function in the standard math package. So I wrote a quick one.
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))
@azproduction
azproduction / LICENSE.txt
Created January 17, 2012 08:21 — forked from 140bytes/LICENSE.txt
Tiny ajax
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mikhail Davydov <azazel.private@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@stereobooster
stereobooster / embed
Created April 10, 2011 18:13
share buttons snippet
<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?hl=ru&amp;ie=UTF8&amp;output=embed&amp;q={address}"></iframe>