Skip to content

Instantly share code, notes, and snippets.

View joneff's full-sized avatar

Иван Жеков joneff

View GitHub Profile
@joneff
joneff / index.js
Created February 17, 2022 12:02
sass-embedded issue
const fs = require('fs');
const path = require('path');
const dartSass = require('sass');
const dartEmbedded = require('sass-embedded');
const dartJson = path.resolve('./dist/dart.json');
const embeddedJson = path.resolve('./dist/embedded.json');
const srcFile = path.resolve('./scss/resolve-vars.scss');
@joneff
joneff / gh_cli.sh
Created February 1, 2022 11:00
A collection of scripts for working with gh cli, issues and projects beta
# remove all theme related labels from issues with multiple theme labels
gh pr list --state closed --limit 1000 --json number --jq ".[] | .number" | xargs -I {} gh pr edit {} --remove-label T:Default,T:Bootstrap,T:Material,T:Classic
# get project ID by ORG and NUMBER
gh api graphql -f query='
query{
organization(login: "ORG"){
projectNext(number: NUMBER) {
id
}
@joneff
joneff / gulpfile.js
Created February 1, 2022 10:33
Compile sass files with ~
const path = require('path');
const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));
// An importer that redirects relative URLs starting with "~" to
// `node_modules`.
function packageImporter(url) {
@joneff
joneff / _color-functions.scss
Created December 5, 2017 16:35
Functions for dealing with colors and contrast
// Assuming the following markup
// body text
// <div class="component">component</div>
// <div class="card">component</div>
// <div class="list">component</div>
$yiq-contrasted-threshold: 150;
$white: #ffffff;
$black: #111111;
@joneff
joneff / blue-opal.variables.scss
Created September 28, 2017 11:59
Blue opal Kendo UI Custom theme
$base-theme:Default;
$skin-name:blue-opal;
$accent: #13688c;
$info: #0066cc;
$success: #37b400;
$warning: #ffb400;
$error: #db4240;
$text-color: #003f59;
$bg-color: #ffffff;
$base-text: #003f59;
@joneff
joneff / democs.aspx
Created August 30, 2012 13:07
Example file
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Upload_WebMail_DefaultCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
@joneff
joneff / includes.scss
Created August 27, 2012 16:15
Gist for Sass blogpost
@import "common/__telerik.mixins.scss";
.RadComboBox {
@include self-clearng;
}
@joneff
joneff / gist:1788811
Created February 10, 2012 11:07
vsdocs hints
new line --> /// &#10;
tab --> /// &#09;
combined --> /// &#10;&#09;
@joneff
joneff / gist:1362051
Created November 13, 2011 12:17
make usb like a hard drive
diskpart
list disk
select DISK_NAME
clean
create partition primary
active
format fs=ntfs
assign
exit
@joneff
joneff / gist:1040129
Created June 22, 2011 13:54
js shorthands
var flag = !!document.something.testFeature
// e.g.
var canvasIsSupported = !!document.createElement("canvas").getContext
// if short hand
canvasIsSuppoted && doSomething()
// means
if (canvasIsSupported)
doSomething