Skip to content

Instantly share code, notes, and snippets.

View hql287's full-sized avatar
:octocat:
making dots

Hung Q. Le hql287

:octocat:
making dots
View GitHub Profile
@hql287
hql287 / Enhance.js
Created August 23, 2017 07:58 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@hql287
hql287 / introrx.md
Created July 19, 2017 04:55 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
{% if craft.request.isAjax %}
{% set layout = "_ajaxLayout" %}
{% else %}
{% set layout = "_layout" %}
{% endif %}
{% extends layout %}
{% set limit = 10 %}
{% set params = { section: 'news', limit: limit} %}
@hql287
hql287 / haml_converter.rb
Created August 2, 2016 10:12 — forked from radamant/haml_converter.rb
Simple haml-sass conversion for jekyll
module Jekyll
require 'haml'
class HamlConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /haml/i
end
@hql287
hql287 / redis.sh
Last active August 29, 2015 14:21
#!/bin/sh
# Copyright 2011 Dvir Volk <dvirsk at gmail dot com>. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@hql287
hql287 / README.md
Created November 27, 2013 04:22 — forked from smileart/README.md

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

@hql287
hql287 / Config.php
Last active December 10, 2015 21:28 — forked from benjaminbixby/ee_config.php
EE: Config + Database
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// EE Site
$config['app_version'] = "231";
$config['license_number'] = "";
$config['install_lock'] = "";
$config['is_system_on'] = "y";
$config['site_label'] = 'Sample.';
$config['cookie_prefix'] = '';