Skip to content

Instantly share code, notes, and snippets.

View anhldbk's full-sized avatar
🌴
Calm

Anh Le (Andy) anhldbk

🌴
Calm
View GitHub Profile
//
// Copyright (c) 2014 Sean Farrell
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@Jpoliachik
Jpoliachik / index.ios.js
Last active August 17, 2021 10:27
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@brianehlert
brianehlert / gist:6b7fa7c86be098722d73f944e96b1bf9
Last active June 3, 2016 17:32
Gateblu-Forever on Ubuntu
1) Install Ubuntu Server
Instead of adding a 'pi' user in step 7 name your admin user 'pi' with a password of 'raspberry' during installation
The Service configuration of gateblu-forever assumes this is running on a RaspberryPi
1. Add openSSH server (makes it easier to remotely connect with puTTY and copy / paste)
2) Install LTS node and npm from nodejs.org and node legacy (check http://nodejs.org for latest LTS release numbers)
sudo apt-get update
sudo apt-get upgrade -y
sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
@JonCole
JonCole / Redis-BestPractices-General.md
Last active March 13, 2025 14:30
Redis Best Practices

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active April 6, 2025 19:43
tmux Cheat Sheet

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@bruce
bruce / Login.js
Last active August 5, 2021 16:25
React + Redux + localStorage Login example
// components/Login/Login.js
class Login extends Component {
// ...
handleSubmit(evt) {
evt.preventDefault();
this.props.mutate(this.state)
.then(({ data }) => {
@dgrahn
dgrahn / step.overrides.import.less
Last active May 23, 2017 01:15
Add '.unstackable' option to steps. (Also includes '.padless' option in case you need to shrink the steps on a mobile device)
.ui.unstackable.steps {
flex-direction: row;
}
.ui.unstackable.steps .step {
width: auto !important;
}
@media only screen and (max-width: (@largestMobileScreen)) {
.ui.unstackable.padless.steps .step {
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 15, 2025 14:53
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example