Skip to content

Instantly share code, notes, and snippets.

🏂

Daniel Husar danielhusar

🏂
View GitHub Profile
View typescriptreact.json
{
"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 Dec 28, 2018
bootstrap 4 under namespace
View bootstrap.min.css
/*!
* 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
View shim.js
window.intercomSettings = {
app_id: 'APP_ID',
name: "Jane Doe", // Full name
email: "customer@example.com", // Email address
created_at: 1312182000 // Signup date as a Unix timestamp
};
(function() {
var w = window;
var ic = w.Intercom;
if (typeof ic === "function") {
View dumnmy.js
// Component
import React from 'react';
class ModuleLoader extends React.Component {
state = {
Module: null,
};
componentDidMount() {
this.props.Module().then(loaded => {
this.setState({ Module: loaded.default });
View entry-loader.js
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);
View banner.css
#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;
View change.js
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',
View test.js
const test1 = {test: true};
let component;
componentIntegrationTest('', '', {
beforeEach() {
this.render(hbs`{{change-item-component test1=test1 test2="test2" }}`);
component = getComponentInstance(this);
}
});
View gist:e2992565f65f40c57802af96a8094fb7
const test1 = {test: true};
let component;
componentIntegrationTest('', '', {
beforeEach() {
this.render(hbs`{{change-item-component test1=test1 test2="test2" }}`);
component = getComponentInstance(this);
}
});
View gist:b1c10b9beb6855aff7df10bbd16ba1fe
<a href="https://www.facebook.com/sharer/sharer.php?u=https://www.intercom.io/books/customer-support">Facebook</a> |
<a href="https://twitter.com/intent/tweet?text=Want%20to%20learn%20how%20to%20build%20a%20world-class%20customer%20support%20team?%20Check%20out%20the%20@intercom%20book%20on%20customer%20support.&amp;url=https://www.intercom.com/books/customer-support">Twitter</a> |
<a href="https://www.linkedin.com/shareArticle?title=Intercom%20on%20Customer%20Support&summary=Want%20to%20learn%20how%20to%20build%20a%20world-class%20customer%20support%20team?%20Check%20out%20the%20@intercom%20book%20on%20customer%20support.&url=https://www.intercom.com/books/customer-support">LinkedIn</a>
You can’t perform that action at this time.