Skip to content

Instantly share code, notes, and snippets.

View domyen's full-sized avatar

Dominic Nguyen domyen

View GitHub Profile
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "A build has errors. Fix the errors and commit again."
}
},
{
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Changes were denied in a build. Fix the changes and commit again."
}
},
{
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Dominic's pull request was approved – give them a high five! 🙌"
}
},
{
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Hello, Assistant to the Regional Manager Dwight! *Michael Scott* wants to know where you'd like to take the Paper Company investors to dinner tonight.\n\n *Please select a restaurant:*"
}
},
{
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "A pull request is ready for review."
}
},
{
@domyen
domyen / gist:9a0e58d0b99139afd2fe07dd288397be
Last active January 28, 2019 20:45
SB 5.0 design todo
Todo
- Add Badge component from /frontpage
- Add Button component from /frontpage
- Add Link component from /frontpage
- Add Subheading component from /frontpage
UI bugs
- Correct sidebar spacing
- Add-on titles should have a system default focus not what is currently there now
- CSS scrollbars
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@domyen
domyen / CommentList.js
Last active May 17, 2017 17:30
CommentList.js NONREUSABLE
import React from 'react';
export default function CommentList({comments}) {
return (
<div className="commentList">
{comments.map(({commentText, characterName, characterAvatar, characterId}}) => (
<div className="commentItem">
<div className="avatar"><img src={characterAvatar} /></div>
<div className="message">
<span className="author"><a href=`/character/${characterId}`>{characterName}</a></span>
@domyen
domyen / CommentList.js
Last active May 11, 2017 18:06
CommentList.js (GOOD)
import React from 'react';
export default function CommentList({comments}) {
return (
<div className="commentList">
{comments.map(({text, author: {name, avatar, url}}) => (
<div className="commentItem">
<div className="avatar"><img src={avatar} /></div>
<div className="message">
<span className="author"><a href={url}>{name}</a></span>
@domyen
domyen / CommentListContainer.jsx
Last active March 29, 2017 20:35
Data container component example (via @chantastic)
// CommentListContainer.jsx (DATA)
class CommentListContainer extends React.Component {
constructor() {
super();
this.state = { comments: [] }
}
componentDidMount() {
$.ajax({