===========
ArrayStaticsMathStaticsNumberStaticsObjectStaticsPromiseStringMethodsTypedArrayMethodsTypedArrays
| /** | |
| * shims in console support and ignores calls if console | |
| * object is not present in window | |
| * @param {String} kind the kind of logging statement to make | |
| * @param {Any} argX (optional) the remainder of the logging arguments | |
| * @return {Object} returns App | |
| */ | |
| function logger (kind /*[,arg1, arg2, ..., argN]*/) { | |
| try { | |
| if (typeof kind === 'string' && window.console && typeof window.console[kind] === 'function' && typeof Array.prototype.slice === 'function') { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title><!-- whatever -->A Title</title> | |
| <meta charset="utf-8"> | |
| <!-- [START] script define start --> | |
| <meta name="jsinject-modernizer" content="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"> | |
| <meta name="jsinject-jquery" content="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"> | |
| <!-- [END] script define --> |
| #!/bin/sh | |
| # Dropbox setup on a headless Ubuntu Server | |
| # Script written by Jesse B. Hannah (http://jbhannah.net) <jesse@jbhannah.net> | |
| # Based on http://wiki.dropbox.com/TipsAndTricks/UbuntuServerInstall | |
| ### | |
| # 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 |
| 'use strict'; | |
| const path = require('path'); | |
| const del = require('del'); | |
| const gulp = require('gulp'); | |
| const watch = require('gulp-watch'); | |
| const FILE_SRC_GLOB = ['src/**/*']; | |
| const FILE_SRC_GLOB_NO_JS = [FILE_SRC_GLOB[0], `!${FILE_SRC_GLOB[0]}.js`]; | |
| const FILE_DEST_GLOB = 'app'; |
| 'use strict'; | |
| function Shit() { | |
| this.fo = 'shizzle'; | |
| } | |
| Shit.prototype.fuck = function() { | |
| console.log('Fuck', this, 'shit!'); | |
| }; |
| <script> | |
| /* | |
| * IE10 viewport handler for use on mobile devices and snapped desktop | |
| */ | |
| (function(document,navigator) { | |
| 'use strict'; | |
| var msViewportStyleShim = document.createElement('style'); | |
| msViewportStyleShim.appendChild( | |
| document.createTextNode( | |
| '@-ms-viewport{width:' + ( |
| if (!('ontouchstart' in window)) { | |
| // create synthetic touch events | |
| var idCounter = 0, | |
| emptyArray = []; | |
| $(document).on('mousedown',function (e) { | |
| console.log('faking touchstart'); | |
| var evt = new CustomEvent('touchstart',{ | |
| bubbles : true, | |
| cancelable : true | |
| }); |
| var appModule = angular.module('app', []); | |
| /** | |
| * Check if propName exists in obj. If it does, return it. If not, then return defaultValue. | |
| * If defaultValue is not specified, return undefined. | |
| * @param {Object} obj - the object to check for a property existing on. | |
| * @param {string|number} propName - The propName to find. | |
| * @param {any} [defaultValue] - The default value to return if propName is not found. Defaults to undefined. | |
| */ | |
| function _prop(obj, propName, defaultValue) { |
| util = require "util" | |
| xmpp = require "node-xmpp" | |
| oscar = require 'oscar' | |
| express = require "express" | |
| ### | |
| The XMPP bot. | |
| ### |