Skip to content

Instantly share code, notes, and snippets.

View tucq88's full-sized avatar
🎯
Fake it till you make it. Confidence is more important than knowledge.

Tu Chu tucq88

🎯
Fake it till you make it. Confidence is more important than knowledge.
View GitHub Profile
@gremau
gremau / trello-parser-readme.md
Last active March 18, 2024 18:21 — forked from RealOrangeOne/README.md
Trello JSON parser

Trello Parser

Download

Open a terminal, run this:

sudo curl https://gist.githubusercontent.com/gremau/290ab394c9bf2d6d03c18444ff60c225/raw/trello-parser.py -o /usr/local/bin/trelloparse && sudo chmod +x /usr/local/bin/trelloparse

Usage

$ trelloparse -h

usage: tp [-h] input output

@michaellihs
michaellihs / design-thinking-ux-user-story-mapping.md
Last active August 2, 2023 16:43
Design Thinking, UX, User Story Mapping...

Concepts

Journey Map

User journey map is a visualization of an individual’s relationships with a product/brand over time and across different channels.

  • commonly it’s represented as a timeline of all touch points between a user and a product
  • timeline contains information about all channels that users use to interact with a product
  • visualizes how a user interacts with a product and allows designers to see a product from a user’s point of view
@NgocLinhNguyen
NgocLinhNguyen / get_sign.py
Last active January 21, 2019 09:40
Create signature for API
from hashlib import md5
import hmac
from collections import OrderedDict
def get_sign(token, type):
appSecret = '828eb89cf2f7b7517e6ec37bb34b34ee'
token_string = ''
token = OrderedDict(sorted(token.items()))
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active December 31, 2024 17:11
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@paolocarrasco
paolocarrasco / README.md
Last active January 9, 2025 12:00
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import 'Table.css';
import { Card, Stack, Pagination, SkeletonDisplayText} from '@shopify/polaris';
export default class GeneralisedTable extends Component {
static propTypes = {
tableHeaders: PropTypes.array.isRequired, // array of header labels. Should be an array of strings
attributeRenderFunctions: PropTypes.array.isRequired, // array of render functions. function accepts an item from tableData, index of the item in the current page and the active offset (if pagination is enabled) as param and returns markup for that row
tableData: PropTypes.array.isRequired, // the actual data array
@aurorabbit
aurorabbit / progress.10s.sh
Last active December 31, 2024 00:37
Bitbar timely progress bar
#!/bin/sh
# add this to your bitbar directory
# don't forget to chmod +x
# width and characters for the progress bars
# feel free to configure these
width=30
fill_char="█"
empty_char="▁"
@0xjac
0xjac / private_fork.md
Last active January 13, 2025 14:23
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git