View current-time-events.html
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
<div id="player" data-video-id="ZZ5LpwO-An4"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var tag = document.createElement('script'); | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
// O container do video | |
var playerDiv = $('#player'); |
View remotes-git.sh
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
# Adicionando o primeiro repositório, do Github | |
$ git remote add origin git@github.com:seu_user/seu_projeto.git | |
# Agora adicionando um segundo repositório, vou nomear como **build** | |
git remote add build ssh://user@server/pasta_do_repositorio.git | |
## Obtendo atualizações dos repositórios |
View zap-loading.html
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
<html> | |
<head> | |
<title>Zap Loading - A WhatsApp Web loading clone</title> | |
<meta charset="UTF-8"> | |
<meta name="description" content="A WhatsApp Web loading clone"> | |
<meta name="keywords" content="loading, loading svg"> | |
<style> |
View onename
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
Verifying that +andrebian is my blockchain ID. https://onename.com/andrebian |
View RequestPost.java
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
class RequestPost { | |
public Boolean isJson(String str) { | |
try { | |
new JSONObject(str); | |
} catch (JSONException ex) { |
View ApiRequestExample.swift
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
// | |
// ViewController.swift | |
// apirequest | |
// | |
// Created by Andre Cardoso on 9/24/15. | |
// | |
import UIKit | |
import Foundation |
View CameraViewController.swift
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 UIKit | |
import MobileCoreServices | |
class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate { | |
@IBOutlet weak var imgView: UIImageView! | |
var newMedia: Bool? | |
View ModelOrder.php
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 | |
public function beforeFind($queryData) | |
{ | |
parent::beforeFind($queryData); | |
// Verifica se o primeiro campo da ordenação está setado | |
if (!empty($queryData['sort']) && $queryData['sort'] == 'primeiro_campo') { | |
// Caso esteja, adiciona o segundo elemento junto à ordenação padrão |
View Excel.php
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 | |
/** | |
* Simple excel writer class with no external dependencies, drop it in and have fun | |
* @author Matt Nowack | |
* @link https://gist.github.com/ihumanable/929039/edit | |
* @license Unlicensed | |
* @version 1.0 | |
*/ | |
class Excel { |
View .htaccess
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
# Ativando compactação | |
<FilesMatch ".(js|css|html|htm|php|xml)$"> | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
# Ativando cache no browser | |
<IfModule mod_expires.c> | |
ExpiresActive on |
NewerOlder