Skip to content

Instantly share code, notes, and snippets.

View my8bit's full-sized avatar
🔑
💀‎‍💻忍者🐒

Ihor Pavlenko my8bit

🔑
💀‎‍💻忍者🐒
View GitHub Profile
@my8bit
my8bit / CSS part
Created September 20, 2012 09:09 — forked from rakeshtembhurne/ajax file load
Ajax file load
#ajaxBusy {
display:none;
position: fixed;
z-index:999999;
height:99%;
width:99%;
background: url(../img/loading-icon-trans.gif) no-repeat 50% 50%;
}
@my8bit
my8bit / hipchat_bot.js
Created October 2, 2012 22:40 — forked from powdahound/hipchat_bot.js
Basic XMPP bot example for HipChat using node.js
// Basic XMPP bot example for HipChat using node.js
// To use:
// 1. Set config variables
// 2. Run `node hipchat_bot.js`
// 3. Send a message like "!weather 94085" in the room with the bot
var request = require('request'); // github.com/mikeal/request
var sys = require('sys');
var util = require('util');
@my8bit
my8bit / gTune.js
Created November 9, 2012 12:30
Tune gTalk
/* Tune gmail chat pop-up. Press pop-out
* Shift + Ctrl + J and Ctrl + V this code to console
*/
var output = document.getElementsByClassName("nH ko")[0].style;
var input = document.getElementsByClassName("nH")[24].style;
var fStyle = function (style) {
style.color = "#61E722";
style.backgroundColor = "black";
/*
Ext.JS 3 simple grid resizer
@number - number. please pay attention that index starts from 0
@width - number.
TODO more specific selector
*/
function resizeColumn(number, width) {
var column = document.querySelectorAll('.x-grid3-td-' + number);
for (var i = 0; i < column.length; i++) {
@my8bit
my8bit / Get only text nodes
Last active September 25, 2021 01:51 — forked from IceCreamYou/Inc 500 TSV
Get only text nodes inside dom element
/**
* Get an array containing the text nodes within a DOM node.
*
* From http://stackoverflow.com/a/4399718/843621
*
* For example get all text nodes from <body>
*
* var body = document.getElementsByTagName('body')[0];
*
* getTextNodesIn(body);
@my8bit
my8bit / My sample post on gist.io.md
Last active December 27, 2015 17:19
My sample post on gist.io

Simple Markdown post with image

Success kid

and some code

    if (true) {
    }

and ... thats it!

@my8bit
my8bit / scriptExec.md
Last active December 28, 2015 19:09
New feature in Chrome Debugger - finish script execution.

Finish script execution without stopping.

Press the Play button and hold until see new pop-up button. Release the mouse on new button to finish executing script without stopping.

screenshot

!!!
%html{lang: "en"}
%head
%meta{charset: "utf-8"}/
%title Hello World from HTML by Koding
%meta{content: "width=device-width,initial-scale=1", name: "viewport"}/
%link{href: "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800", rel: "stylesheet", type: "text/css"}/
%body.php
#container
#main.hellobox{role: "main"}
h1 {
color: red;
}
@my8bit
my8bit / stream.py
Created January 21, 2014 16:57
How to save youtube live stream. Python script which allows to save video by sequences
#!/usr/bin/python
# # # # # # # # # # # # # # # # # # # #
# #
# Script was made by Dennis #
# http://stefansundin.com/blog/452 #
# http://pastebin.com/8cw9LHFg #
# #
# # # # # # # # # # # # # # # # # # # #