Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Passgen</title>
</head>
<body>
<center>
<p id="hahash">_</p>
<input type="password" id="master"><button onclick="masterinp();">Ok</button><br/><br/>
<input type="password" id="local"><br/><br/>
/**
* @author Dimitry Kudrayvtsev
* @version 2.1
*/
d3.gantt = function() {
var FIT_TIME_DOMAIN_MODE = "fit";
var FIXED_TIME_DOMAIN_MODE = "fixed";
var margin = {
var gulp = require("gulp");
var browserify = require("browserify");
var source = require("vinyl-source-stream");
gulp.task('js', function () {
return browserify({
entries: './src/ts/index.ts'
}).plugin('tsify')
.bundle()
.pipe(source('app.js'))
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
function RGBColor(color_string)
{
this.ok = false;
/* new versions: https://github.com/alhimik45/dark-vkontakte-style */
@-moz-document regexp("https?://new\.vk\.com(?!(/stats)).*") {
#pv_box, .pv_reply_form_wrap, .narrow_column, .im-page--history-new-bar, .feed_row, .post, .profile_info_header_wrap > *, .ui_search, #stl_bg, .ui_tabs_header, #wk_box, .wk_history_tabs, .web_cam_photo, .photos_choose_upload_area, .im-page--history-new-bar > span, .page_media_thumbed_link, .mention_tt_actions, .mv_controls, .feedback_row_answer, .feedback_row_clickable:hover:not(.feedback_row_touched), .im-mess.im-mess_gift, .eltt, .wall_module .reply, * [class*="_header"] {
background: none !important; }
.page_block, .page_media_poll_wrap {
background-color: transparent !important; }
.flat_button, .module_header, * [class*="box_title"] {
background-color: rgba(66, 66, 66, 0.5) !important; }
@alhimik45
alhimik45 / stringify3
Created May 30, 2014 04:18
stringify3
function stringify(v){return!v&0!=v?'':v+''}
@alhimik45
alhimik45 / stringify2
Created May 29, 2014 15:00
stringify2
function stringify(v){return!!v|0==v?v+'':''}
function stringify(v){return v==0||!!v?v+'':''}
console.log(0);