This file contains hidden or 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
/** | |
* Transform a Query object to its SQL value | |
* | |
* @param Query $query | |
* | |
* @return string | |
*/ | |
function queryToSql($query) | |
{ | |
// Unnest query objects |
This file contains hidden or 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
<main> | |
<div class="third"></div> | |
<div class="third"></div> | |
<div class="third"></div> | |
</main> |
This file contains hidden or 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
main | |
.third | |
.third | |
.third | |
.half | |
.half |
This file contains hidden or 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
angular.module('nobrow.interceptors').config(function ($provide, $httpProvider) { | |
$provide.factory('TokenHttpInterceptor',function ($http, $cacheFactory) { | |
var cache = $cacheFactory('nobrow'); | |
return { | |
request: function (config) { | |
var token = cache.get('access_token'); | |
if (token) { | |
config.headers.common.Authorization = 'Bearer '+token; |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
@import "compass"; | |
$debug-browser-support: true; | |
body { | |
@include box-sizing(border-box); |
This file contains hidden or 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 | |
/** | |
* Object-oriented wrapper for CURL | |
*/ | |
class Curl | |
{ | |
/** | |
* The internal CURL instance | |
* | |
* @var resource |
This file contains hidden or 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 | |
// Les instances en temps normal | |
////////////////////////////////////////////////////////////////////// | |
// En PHP, quand on a une classe non-statique, il faut d'abord l'instancier | |
// en faisant `new MyClass`. On place cette instance dans une variable, ensuite | |
// on appelle les méthodes sur la variables, comme ceci : | |
$elastica = new Elastica\Client('123456789'); |
This file contains hidden or 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 | |
// Si on passe les dépendances manuellement | |
class HTML | |
{ | |
function __construct(URL $url) | |
{ | |
$this->url = $url; | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<!-- OPML generated by Fever --> | |
<head><title>Fever</title></head> | |
<body> | |
<outline text="Kindling"> | |
<outline type="rss" text=".chez kek." title=".chez kek." xmlUrl="http://blog.zanorg.com/rss/fil_rss.xml" htmlUrl="http://blog.zanorg.com/"/> | |
<outline type="rss" text=".net" title=".net" xmlUrl="http://feeds.feedburner.com/net/topstories" htmlUrl="http://www.netmagazine.com"/> | |
<outline type="rss" text="// hicksdesign - journal" title="// hicksdesign - journal" xmlUrl="http://hicksdesign.co.uk/feeds/rss/" htmlUrl="http://hicksdesign.co.uk/journal/"/> | |
<outline type="rss" text="24 ways" title="24 ways" xmlUrl="http://feeds.feedburner.com/24ways" htmlUrl="http://24ways.org/"/> |
This file contains hidden or 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 | |
////////////////////////////////////////////////////////////////////// | |
//////////////////////// METHODOLOGIE SEPARÉE //////////////////////// | |
////////////////////////////////////////////////////////////////////// | |
// app/controllers/UsersController --------------------------------- / | |
class UsersController | |
{ |