(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
class Notification extends Component { | |
constructor(props) { | |
super(props); | |
this.removeNoti = this.removeNoti.bind(this); | |
} | |
componentDidMount() { | |
this.timeout = setTimeout(this.removeNoti, 4000); | |
} |
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
xterm-256color-italic|xterm with 256 colors and italic, | |
sitm=\E[3m, ritm=\E[23m, | |
use=xterm-256color, |
{% if craft.request.isAjax %} | |
{% set layout = "_ajaxLayout" %} | |
{% else %} | |
{% set layout = "_layout" %} | |
{% endif %} | |
{% extends layout %} | |
{% set limit = 10 %} | |
{% set params = { section: 'news', limit: limit} %} |
module Jekyll | |
require 'haml' | |
class HamlConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) | |
ext =~ /haml/i | |
end |
#!/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. | |
# |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------- | |
| Foreign Characters | |
| ------------------------------------------------------------------- | |
| This file contains an array of foreign characters for transliteration | |
| conversion used by the Text helper | |
| | |
*/ | |
$foreign_characters = array( |
# SECURE .HTACCESS FILE | |
# ============================================================ | |
<Files .htaccess> | |
order allow,deny | |
deny from all | |
</Files> | |
# DON'T SHOW ANY DIRECTORY WITHOUT AN INDEX FILE | |
# ============================================================ | |
Options -Indexes |