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
| // mock file | |
| function MockFile() { }; | |
| MockFile.prototype.create = function (name, size, mimeType) { | |
| name = name || "mock.txt"; | |
| size = size || 1024; | |
| mimeType = mimeType || 'plain/txt'; | |
| function range(count) { | |
| var output = ""; |
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
| import React, { Component } from 'react' | |
| import { Link } from 'react-router' | |
| // Drag and Drop | |
| import { DragDropContext } from 'react-dnd' | |
| import HTML5Backend from 'react-dnd-html5-backend' | |
| // Material UI | |
| import { List } from 'material-ui/List' | |
| import Subheader from 'material-ui/Subheader' | |
| class ReorderableList extends Component { |
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
| "use strict"; | |
| var crypto = require("crypto"); | |
| var EncryptionHelper = (function () { | |
| function getKeyAndIV(key, callback) { | |
| crypto.pseudoRandomBytes(16, function (err, ivBuffer) { | |
| var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ; |
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
| Add-Type -AssemblyName System.Windows.Forms | |
| while ($true) | |
| { | |
| $Pos = [System.Windows.Forms.Cursor]::Position | |
| $x = ($pos.X % 500) + 1 | |
| $y = ($pos.Y % 500) + 1 | |
| [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
| Start-Sleep -Seconds 10 | |
| } |
OlderNewer