This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://twitter.com/home?status=STATUS" title="Click to share this post on Twitter">Share on Twitter</a> | |
<a href="http://www.facebook.com/sharer.php?u=URL&t=TITLE">link or image</a> | |
<a href="https://m.google.com/app/plus/x/?v=compose&content=CONTENT">Image or text</a> | |
Facebook*: https://api.facebook.com/method/links.getStats?urls=%%URL%%&format=json | |
Twitter: http://urls.api.twitter.com/1/urls/count.json?url=%%URL%% | |
Reddit:http://buttons.reddit.com/button_info.json?url=%%URL%% | |
LinkedIn: http://www.linkedin.com/countserv/count/share?url=%%URL%%&format=json | |
Digg: http://widgets.digg.com/buttons/count?url=%%URL%% | |
Delicious: http://feeds.delicious.com/v2/json/urlinfo/data?url=%%URL%% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.hyphenate() { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; // Non standard for webkit | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[placeholder]:focus::-webkit-input-placeholder { | |
color: transparent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resizeId; | |
$(window).resize(function() { | |
clearTimeout(resizeId); | |
resizeId = setTimeout(doneResizing, 500); | |
}); | |
function doneResizing(){ | |
//whatever we want to do | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* no media query is for phone and larger (mobile first) */ | |
@media only screen and (min-width: @screen-sm-min) {} /* tablet (768px) and larger */ | |
@media only screen and (min-width: @screen-md-min) {} /* desktop (992px) and larger */ | |
@media only screen and (min-width: @screen-lg-min) {} /* wide destop (1200px) and larger */ | |
@media only screen and (max-width: @screen-xs-max) {} /* phone (767px) and smaller */ | |
@media only screen and (max-width: @screen-sm-max) {} /* tablet (991px) and smaller */ | |
@media only screen and (max-width: @screen-md-max) {} /* desktop (1199px) and smaller */ | |
/* no media query is also for wide desktop and smaller */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class UserField extends SelectField { | |
public function input() { | |
$select = new Brick('select'); | |
$select->addClass('selectbox'); | |
$select->attr(array( | |
'name' => $this->name(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blog = ($page->parents()->count() > 0)? $page->parents()->first() : $page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
class Time extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
date: new Date(), | |
count: 0 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
function Todo(props) { | |
const { text, isDone, onToggle } = props; | |
const style = isDone ? { color: "grey", textDecoration: "line-through" } : {}; | |
return ( | |
<li> | |
<input |
OlderNewer