Paste the file in app/Utility/ArraySort.php
Remember, the file must be in app/Utility
folder
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 | |
//primeiro você chama o sdk do facebook | |
require 'facebook-php-sdk-master/src/facebook.php'; | |
//aqui você instancia com as informações do seu app (tem que criar um app em developers.facebook.com) | |
$facebook = new Facebook(array( | |
'appId' => 'YOUR_APP_ID', | |
'secret' => 'YOUR_APP_SECRET' | |
)); | |
?> |
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
/* Filtro de Conteudo por Atributos Data */ | |
$('[data-slct]').click(function(e){ | |
$('[data-slct]').removeClass('active'); | |
$(this).addClass('active'); | |
var scope = $(this).data('slct-name'); | |
var selected = $(this).data('slct'); | |
$("[data-"+ scope +"]").not("[data-"+ scope +"*='"+ selected +"']").fadeOut('fast'); | |
$("[data-"+ scope +"*='"+ selected +"']:hidden").fadeIn('fast'); | |
e.preventDefault(); | |
}); |
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 | |
/** | |
* Sequência de Fibonacci em PHP | |
* @author Renato Ribeiro <[email protected]> | |
* | |
*/ | |
//função que gera a sequência de fibonacci e retorna em array | |
function fibonacci($q, $zero = false){ | |
if($q >= 2){ |
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
/** | |
* MyGrid.css | |
* 24, 12, 6, 4, 3, 2 or 1 columns all in one. | |
* | |
* @repository https://github.com/renatorib/mygrid.css | |
* @fork https://github.com/renatorib/mygrid.css/fork | |
* @clone https://github.com/renatorib/mygrid.css.git | |
* | |
* @license GPL v2 (http://www.gnu.org/licenses/gpl-2.0.html) | |
* @author Renato Ribeiro (https://lugri.com/) |
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
<dl class="accordion"> | |
<dt><a href="#">Panel 1</a></dt> | |
<dd>Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.</dd> | |
<dt><a href="#">Panel 2</a></dt> | |
<dd>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</dd> | |
<dt><a href="#">Panel 3</a></dt> | |
<dd>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.</dd> |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
Note: this was written in April/May 2014 and the API may have changed since
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 request = require('request'); | |
module.exports = function(site){ | |
this.site = site; | |
this.cookiejar = request.jar(); | |
var self = this; | |
// Request Wrapper |
- Beer Locker: Building a RESTful API with Node
- Beer Locker: Building a RESTful API with Node - CRUD
- Beer Locker: Building a RESTful API with Node - Passport
- Beer Locker: Building a RESTful API with Node - OAuth2 Server
- Beer Locker: Building a RESTful API with Node - Digest
- Beer Locker: Building a RESTful API with Node - Username & Password
OlderNewer