('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')
Format :
http://view.officeapps.live.com/op/view.aspx?src=[ONLY_OFFICE_FILE_URL_ENCODED]
#!/usr/bin/env node | |
const fs = require('fs'); | |
const path = require('path'); | |
const THREE = require('three'); | |
const program = require('commander'); | |
const Canvas = require('canvas'); | |
const { Blob, FileReader } = require('vblob'); | |
// Patch global scope to imitate browser environment. |
let mouseMoved = false; | |
document.addEventListener('mousedown', () => { | |
mouseMoved = false; | |
}, false); | |
document.addEventListener('mousemove', () => { | |
mouseMoved = true; | |
}, false); |
import React, { Component } from 'react'; | |
export default function withPropsChecker(WrappedComponent) { | |
return class PropsChecker extends Component { | |
componentWillReceiveProps(nextProps) { | |
Object.keys(nextProps) | |
.filter(key => { | |
return nextProps[key] !== this.props[key]; | |
}) | |
.map(key => { |
#!/bin/bash | |
# See https://github.com/docker-library/mongo/pull/63 | |
docker run --rm --volumes-from my-mongo-server mongo unlink "/data/db/mongod.lock" | |
docker run --rm --volumes-from my-mongo-server mongo --repair |
module.exports = function (file, api) { | |
var j = api.jscodeshift; | |
var root = j(file.source); | |
// Finds the all classes that have properties | |
root | |
.find(j.ClassDeclaration, { | |
body: { | |
type: 'ClassBody', | |
body: [{ |
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
/* HTML | |
<div class="file"> | |
<div class="icon"></div> | |
<span class="filename"> | |
<span class="name"> | |
Filename<span class="extension">.ext</span> | |
</span> | |
</span> |