Skip to content

Instantly share code, notes, and snippets.

View danielhusar's full-sized avatar
🏂

Daniel Husar danielhusar

🏂
View GitHub Profile
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="prose"
DISABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(brew git git-extras github node npm rails)
source $ZSH/oh-my-zsh.sh
unsetopt correct
@danielhusar
danielhusar / typescriptreact.json
Created June 12, 2020 00:55
Vs code snippets
{
"rc": {
"prefix": "rc",
"body": [
"import React from 'react'",
"",
"interface ${1:${TM_FILENAME_BASE/((^[a-z])|[-,_]([a-z]))/${2:/upcase}${3:/upcase}/g}}Props {",
" $3",
"}",
"",
@danielhusar
danielhusar / bootstrap.min.css
Created December 28, 2018 22:37
bootstrap 4 under namespace
/*!
* Bootstrap v4.2.1 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/.bootstrap-iso :root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.bootstrap-iso *,.bootstrap-iso ::after
window.intercomSettings = {
app_id: 'APP_ID',
name: "Jane Doe", // Full name
email: "[email protected]", // Email address
created_at: 1312182000 // Signup date as a Unix timestamp
};
(function() {
var w = window;
var ic = w.Intercom;
if (typeof ic === "function") {
// Component
import React from 'react';
class ModuleLoader extends React.Component {
state = {
Module: null,
};
componentDidMount() {
this.props.Module().then(loaded => {
this.setState({ Module: loaded.default });
var SingleEntryPlugin = require('webpack/lib/SingleEntryPlugin');
var utils = require('loader-utils');
module.exports = function() {
// ...
};
module.exports.pitch = function(request) {
this.addDependency(request);
var query = utils.parseQuery(this.query);
@danielhusar
danielhusar / banner.css
Created November 21, 2017 04:18
Viacoin banner
#header {
height: 111px; /* 18px + 75px + 18px */
background: #252525;
background: linear-gradient(to right, #252525 0%, #868585 50%, #252525 100%);
position: relative;
}
#header:before {
content: '';
display: block;
var ChangeController = Em.Controller.extend({
changesController: Em.inject.controller('changes'),
admin: Em.computed.reads('changesController.model'),
change: Em.computed.reads('model'),
recordPageLoad: function() {
this.trackEvent('marketing-event', {
owner: 'marketing',
action: 'visited',
const test1 = {test: true};
let component;
componentIntegrationTest('', '', {
beforeEach() {
this.render(hbs`{{change-item-component test1=test1 test2="test2" }}`);
component = getComponentInstance(this);
}
});
const test1 = {test: true};
let component;
componentIntegrationTest('', '', {
beforeEach() {
this.render(hbs`{{change-item-component test1=test1 test2="test2" }}`);
component = getComponentInstance(this);
}
});