Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en" class="no-js">
<head><script type="text/javascript">
/* iubenda ws plugin */
/* app7 */
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta class="swiftype" name="tags" data-type="string" content="en">
@htatche
htatche / components.add-todo.js
Last active May 10, 2016 22:04
Todo simple app
// app/components/add-todo.js
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
submit() {
const text = this.get('text');
this.get('onAdd')(text);
@htatche
htatche / index.jade
Created April 11, 2014 01:03
A Pen by Hervé.
doctype html
html
head
title Curios
script(src="../bower_components/jquery/dist/jquery.js")
script(src="../bower_components/bootstrap/dist/js/bootstrap.js")
link(rel="stylesheet", type="text/css", href="../bower_components/bootstrap/dist/css/bootstrap.css")
link(rel="stylesheet", type="text/css", href="main.css")
body
@htatche
htatche / server.js
Created February 13, 2014 14:10 — forked from jeffrafter/server.js
var express = require('express');
var sys = require('sys');
var oauth = require('oauth');
var app = express.createServer();
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY";
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET";
function consumer() {
@htatche
htatche / gist:8860071
Last active August 29, 2015 13:56
Javascript good lectures
// Eloquent Javascript
http://eloquentjavascript.net/2nd_edition/preview/
// Object Oriented Javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript
@htatche
htatche / README.markdown
Last active August 29, 2015 13:55
Modifiers

Ember View for Modifiers

Ember View created with performance in mind, instead of using any template library, the DOM code is injected directly from the javascript.

Loading this screen of the app takes aprox 100ms even on slowest computers/mobiles.

@htatche
htatche / A-Pen-by-Hervé.markdown
Last active August 29, 2015 13:55
A Pen by Hervé.

Dynamic Responsive Height Class

I was asked in my company to make every screen of our app responsive to height, here is my solution :)

Just extend from Responsive, set your elements and the offset, and you are ready to go !

A Pen by Hervé on CodePen.

@htatche
htatche / A-Pen-by-Hervé.markdown
Last active January 4, 2016 22:18
A Pen by Hervé.

Playing around with namespaces, prototype inheritance, and anonymous functions

Here I will throw the code that comes down from the top of my head in my spare time, just to have fun !

A Pen by Hervé on CodePen.

License.

@htatche
htatche / A-Pen-by-Hervé.markdown
Last active January 3, 2016 11:19
Generated by SassMeister.com.