Skip to content

Instantly share code, notes, and snippets.

View Grawl's full-sized avatar
🔨
work work

Даниил Пронин Grawl

🔨
work work
View GitHub Profile
$(document).ready(function(){
// Take care of the initial page load
$(".tabs-menu li:first, .tabs-content:first").addClass("active");
$(".tabs-content:not(:first)").hide();
// Capture clicks on the tabs menu. Set the clicked menu item
// to active. Show the corresponding
// content block (by index) and hide all others.
$(".tabs-menu > li > a").click(function(e){
var index = $('.tabs-menu li').index($(this).parent('li'));
@Grawl
Grawl / prefix-free.styl
Created February 4, 2012 08:29 — forked from sapegin/gist:1735915
-prefix-free for Stylus
// #### it's compilable -prefix-free
// © 2011 Artem Sapegin http://sapegin.ru
// + 2011 Grawl http://grawl.ru
// + radial-gradient and other rules with vendor prefixes added by Grawl.
// add your fixes to My table of vendor prefixes there: http://goo.gl/3hPfR
/* mask:
parameter()
-webkit-parameter arguments
-moz-parameter arguments
-ms-parameter arguments
@noprompt
noprompt / word-re.txt
Last active May 2, 2016 15:30
Regular expression for matching any word in `/usr/share/dict/words`.
This file has been truncated, but you can view the full file.
@bomberstudios
bomberstudios / sketch-plugins.md
Last active July 16, 2025 18:21
A list of Sketch plugins hosted at GitHub, in no particular order.
@jasesmith
jasesmith / AtomVerticalTabs.md
Last active November 23, 2019 09:40
Vertical file tab list in Atom

Vertical File Tabs in Atom

Add the styles to the .atom/styles.less stylesheet in Atom.

Atom Vertical File Tabs

.datalist {
@item: item;
&-@{item} {
display: block;
&-term {font-weight: normal}
&-description {font-weight: bold}
}
&-float &-@{item} {
display: inline-block;
@ShirtlessKirk
ShirtlessKirk / dataset.js
Last active February 22, 2025 12:40
Dataset polyfill for IE < 11
/*
* @preserve dataset polyfill for IE < 11. See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset and http://caniuse.com/#search=dataset
*
* @author ShirtlessKirk copyright 2015
* @license WTFPL (http://www.wtfpl.net/txt/copying)
*/
/*global define: false, module: false */
/*jslint nomen: true, regexp: true, unparam: true */
(function datasetModule(global, definition) { // non-exporting module magic dance
'use strict';
@andreymukha
andreymukha / yandex_referat.php
Last active December 1, 2022 15:07
Яндекс реферат
<?php
/**
* Яндекс рефераты. Генерирует заголовок и тело реферата.
* @author Andrey Mukha
* @param mixed $category
* Доступные значения:
* - Конкретная категория из массива $arr
* - random (случайная категория из массива $arr)
* - all (выбор сразу всех категорий)
@cucmberium
cucmberium / gist:8ca7f4a5c5ea5a8b6590
Last active May 11, 2019 16:40
Twitter poll api

twitterの投票

コード

var status = await tokens.Statuses.ShowAsync(id => 696716686381027328, include_cards => true, cards_platform => "Android-12");

https://api.twitter.com/1.1/statuses/show.json?id=696716686381027328&include_cards=true&cards_platform=Android-12

Twitter for AndroidのCK/CS

@noahehall
noahehall / AtomVerticalTabs.md
Last active July 28, 2016 05:05 — forked from jasesmith/AtomVerticalTabs.md
Vertical file tab list in Atom

Vertical File Tabs in Atom

Add the styles to the .atom/styles.less stylesheet in Atom.

Atom Vertical File Tabs