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
function createDirectory(directory,callback){ | |
mkpath(directory,function(err){ | |
callback(null) | |
}); | |
} | |
exports.album_create = function(req,res){ | |
var album_path = "uploads/albums/"+req.body.name | |
var directories = [ album_path, album_path+"/pages", album_path+"/laminas", album_path+"/sobres" ]; |
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
function createDirectory(path){ | |
return function(callback){ | |
mkpath(path,function(err){ | |
callback(null,path) | |
}); | |
}; | |
} | |
exports.album_create = function(req,res){ | |
var album_path = "uploads/albums/"+req.body.name |
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
// ROUTING | |
var albums = require("../app/controllers/album") | |
app.get("/admin/album/:album_id",albums.edit) | |
app.param('album_id', albums.album); | |
// CONTROLLER | |
exports.album = function(res,req,next,album_id){ | |
Album.findOne({ _id: album_id }).exec(function (err,album){ | |
if(err) return next(err) |
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
/* By muZk | |
v.0.3 | |
// Funciones: | |
// Damage.Block(100) para bloquear 100 de daño | |
// Damage.Block(-100) para incrementar el daño en 100 | |
// Damage.BlockPercent(10) para bloquear el 10% del daño | |
// Damage.BlockPercent(-10) para incrementar el daño en 10% | |
// Damage.isSpell() para saber si el daño es mágico | |
// Damage.isPhysical() para saber si el daño es físico |
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
# -*- coding: utf-8 -*- | |
import Tkinter | |
import tkFileDialog | |
import multiprocessing | |
import time | |
import thread | |
class GUI: | |
def __init__(self): |
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
# -*- coding: utf-8 -*- | |
import Tkinter | |
import tkFileDialog | |
import multiprocessing | |
import time | |
import Process | |
import thread | |
class GUI: |
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
<section class="cafes-lista"> | |
<h1 class="cafes-titulo-principal centrar">Nuestros Cafés</h1> | |
<% @products.each do |product| %> | |
<article class="cafe"> | |
<div class="cafe-vista-previa pull-left"> | |
<%= image_tag product.image, alt: product.name %> | |
</div> | |
<div class="cafe-contenido pull-left"> | |
<header class="cafe-encabezado"> |
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
/** | |
Generales | |
**/ | |
.clear{ | |
clear: both; | |
} | |
.pull-left{ | |
float: left; |
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
// http://dsrd.uc.cl/dara/libcursos/periodo21/ev/ev_4_data.html | |
function getTestDate(courseName){ | |
var rows = document.getElementsByTagName("tr"); | |
for(var i = 2; i < rows.length; i++){ | |
var fonts = rows[i].getElementsByTagName("font"); | |
console.log(fonts[0].textContent); | |
if(fonts[0].textContent == courseName){ | |
console.log('ok') | |
return fonts[fonts.length-3].innerHTML.split("<br>"); | |
} |
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
@media print { | |
.visible-print { | |
display: block !important; | |
} | |
table.visible-print { | |
display: table; | |
} | |
tr.visible-print { | |
display: table-row !important; | |
} |
OlderNewer