🏃♂️
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
<%@ Application Language="C#" %> | |
<%@ Import Namespace="System.Web.Routing" %> | |
<script RunAt="server"> | |
/// <summary> | |
/// Add routes to application | |
/// </summary> | |
void RegisterRoutes(RouteCollection routes) | |
{ | |
#region Rotas amigáveis |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> | |
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<script> |
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
#!/bin/bash | |
#Force file syncronization and lock writes | |
mongo admin --eval "printjson(db.fsyncLock())" | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
MONGO_HOST="prod.example.com" | |
MONGO_PORT="27017" | |
MONGO_DATABASE="dbname" | |
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
#!/bin/bash | |
# mongodump reference: http://www.nacaolivre.com.br/servidor/mysql-backup-com-mysqldump/ | |
# Author: Lazaro Lima - www.lazarolima.com.br | |
# | |
S3_BUCKET_NAME="condomundo-databases-snapshots" | |
S3_BUCKET_PATH="mysql-backups" | |
MYSQLROOT="yourUserName" | |
MYSQLPASS="yourPassword" |
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
using (StringWriter sw = new StringWriter()) | |
{ | |
ViewData.Model = oCalendarEvent; | |
ViewEngineResult viewResult = ViewEngines.Engines.FindPartialView(ControllerContext, "_PARTIALVIEWNAME"); | |
ViewContext viewContext = new ViewContext(ControllerContext, viewResult.View, ViewData, TempData, sw); | |
viewResult.View.Render(viewContext, sw); | |
eventView = sw.GetStringBuilder().ToString().RemoveAll("\r\n"); | |
} |
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="BoxProgress" class="activitybox-progress hide"> | |
<hr> | |
<div class="progress progress-success progress-striped active"> | |
<div class="bar" id="BoxProgress_Progress"> | |
</div> | |
</div> | |
</div> | |
<div id="activityboxicons" class="activitybox-icons pull-right hide"> | |
<span class="btn btn-mini fileinput-btn" title="inserir imagem"><i class="icon-camera"> |
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
static void Main(string[] args) | |
{ | |
try | |
{ | |
Console.WriteLine("Selecione uma das opções abaixo: "); | |
Console.WriteLine("1) Publicar usuários"); | |
Console.WriteLine("2) Publicar empresas"); | |
Console.WriteLine("3) Publicar perguntas"); | |
Console.WriteLine("4) Publicar boxes das empresas"); | |
Console.WriteLine("5) Publicar categorias das empresas"); |
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 app = angular.module('app', []); | |
app.controller("ListagemController", function($scope){ | |
$scope.itens = []; | |
for (var i = 1; i <= 16; i++) { | |
$scope.itens.push({text: i}); | |
}; | |
}) |
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
// Released under the MIT license | |
// created by: Frank Zondlo | |
// Quick and dirty jquery script to split ULs into multiple columns | |
(function($){ | |
jQuery.fn.cols = function(num_columns) { | |
//Break up the array into managable chunks | |
function chunk (arr, number_of_chunks) { |
OlderNewer