Skip to content

Instantly share code, notes, and snippets.

@alexisnomine
alexisnomine / gist:04d1c7ab3f1de1b8ea3e
Last active August 29, 2015 14:19
AngularJS File Drag & Drop directive
(function() {
'use strict';
angular.module('ngFileDND', ['ng'])
.directive('dropZone', function () {
return {
restrict: 'E',
scope: {
message: '@',
accept: '@',
@alexisnomine
alexisnomine / overrideLayoutFont.css
Last active August 29, 2015 13:58
Override totally SharePoint 2010 font-family (from corev4.css)
.ms-formula,
.ms-templatepicker select,
.ms-propertysheet th.ms-vh2-nofilter-notextalign,
.ms-dspadapterlist,
.ms-sectionheader,
.ms-linksectionheader,
.ms-sectionhighlight-top,
table.ms-pageinformation,table.ms-createpageinformation,
.ms-pageinformation table td,.ms-createpageinformation table td,
.ms-pageinformation h3.ms-standardheader,
@alexisnomine
alexisnomine / DocxToPdf.ps1
Created March 7, 2014 09:58
Batch convert docx to pdf with powershell
Param(
[Parameter(Mandatory=$True)]
[string]$FilePath
)
$Files = Get-ChildItem "$FilePath\*.docx"
$Word = New-Object -ComObject Word.Application
Foreach ($File in $Files) {
@alexisnomine
alexisnomine / functions.php
Last active June 6, 2023 18:01
WooCommerce 2.1 Mobile First Responsive Layout
<?php
add_filter( 'woocommerce_enqueue_styles', 'my_woocommerce_styles' );
function my_woocommerce_styles($styles){
unset($styles['woocommerce-layout']);
unset($styles['woocommerce-smallscreen']);
$styles['woocommerce-layout'] = array(
'src' => get_stylesheet_directory_uri() . '/woocommerce-layout.css',
'deps' => '',
'version' => '1.0.0',
'media' => 'all'
@alexisnomine
alexisnomine / breadcrumbs.css
Last active October 12, 2020 14:55
Breadcrumb when navigating folders in a Sharepoint 2010 Document Library WebPart. (Pure JS, No jQuery, IE8+) Can be inserted via a "HTML Form Web Part" or referenced in a custom masterpage.
.ms-WPHeader .breadcrumbs{
display:block;
font-style:italic;
}
.ms-WPHeader .breadcrumbs,.ms-WPHeader .breadcrumbs a{
font-size: 0.8em;
color:#D1D1D1;
}