A Pen by Biagio Paruolo on CodePen.
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
// This is our destination canvas. | |
var canvas = $('#doughnut')[0]; | |
var ctx = canvas.getContext('2d') | |
// This is the canvas we're going to render chart.js to. | |
var placeholder = document.createElement('canvas'); | |
placeholder.width = $(canvas).width(); | |
placeholder.height = placeholder.width; | |
var placeholderctx = placeholder.getContext('2d'); |
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"), | |
cheerio = require("cheerio"), | |
url = "https://www.google.com/search?q=data+mining", | |
corpus = {}, | |
totalResults = 0, | |
resultsDownloaded = 0; | |
function callback () { | |
resultsDownloaded++; |
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 archetypeValueAsString = member.GetValue<string>("figli"); | |
var member = Services.MemberService.GetById(user.Id); | |
if (archetypeValueAsString == null) | |
{ | |
//var archetype2 = JsonConvert.DeserializeObject<ArchetypeModel>(archetypeValueAsString); | |
ArchetypeModel a = new ArchetypeModel(); |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using System.Linq; | |
@{ | |
Layout = null; | |
Response.ContentType = "text/xml"; | |
}<?xml version='1.0' encoding='UTF-8' ?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
@ListChildNodes(Umbraco.TypedContent(UmbracoContext.Current.PageId).AncestorOrSelf(1)) |
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
// Add Into Views/Partials of Merchello.Bazaar plugin under Umbraco | |
// Into Umbraco Web.Config: | |
// <add key="Bazaar:ResolvePaymentForms" value="False" /> | |
<!-- PayPal Payment Method --> | |
<div id="PayPalPayment" class="payment-method-form well"> | |
@using (Html.BeginUmbracoForm<SalePreparationOperationsController>("ConfirmPayPalSale", null, new { @id = "ConfirmPayPalSale" })) | |
{ |
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
'use strict'; | |
// Load plugins | |
var gulp = require('gulp'), | |
$ = require('gulp-load-plugins')(), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload; | |
// Sass | |
gulp.task('sass:dev', function () { |
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
{ | |
"name": "package", | |
"version": "1.0.0", | |
"private": true, | |
"devDependencies": { | |
"gulp": "~3.8.11", | |
"gulp-load-plugins": "~0.10.0", | |
"browser-sync": "~2.7.2", | |
"wiredep": "~2.2.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
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language=fra&sensor=false"></script> | |
<script type="text/javascript"> | |
var map; | |
var Markers = {}; | |
var infowindow; | |
var locations = [ | |
[ | |
'Samsung Store Madeleine', | |
'<strong>Samsung Store Madeleine</strong><p>5 Boulevard Malesherbes, 75008 Paris<br>10h – 20h</p>', | |
48.8701925, |
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
/usr/bin/host has been preloaded; | |
grep -ri --include=*.php "/usr/bin/host" ./ | |
check all cronjobs: | |
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done | |
check running processes: | |
ps -aux |
OlderNewer