Skip to content

Instantly share code, notes, and snippets.

console.log(0);
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+'':''}
@alhimik45
alhimik45 / stringify3
Created May 30, 2014 04:18
stringify3
function stringify(v){return!v&0!=v?'':v+''}
(let [text-area (RSyntaxTextArea.)]
(config! text-area
:wrap-lines? true
:syntax-editing-style SyntaxConstants/SYNTAX_STYLE_CLOJURE ;It's RSyntaxTextArea property, not JTextArea
))
(ns test.core
(:use seesaw.core)
(:require
[seesaw.rsyntax :as r]))
(defn -main [& args]
(invoke-later
(-> (frame
:title "Hello",
/* 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; }
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'))
/**
* @author Dimitry Kudrayvtsev
* @version 2.1
*/
d3.gantt = function() {
var FIT_TIME_DOMAIN_MODE = "fit";
var FIXED_TIME_DOMAIN_MODE = "fixed";
var margin = {