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
SELECT '<X3D> | |
<Scene> | |
<Transform> | |
<Shape> | |
<Appearance> | |
<Material emissiveColor=''0 0 1''/> | |
</Appearance> ' || | |
st_asx3d( | |
ST_Extrude( | |
ST_Buffer(ST_GeomFromText('POINT(100 90)'), |
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
var cesiumViewer = window.viewer.state ? window.viewer.state.viewer: window.viewer | |
var camera = cesiumViewer.scene.camera | |
var scene = cesiumViewer.scene | |
var Cartesian3 = Cesium.Cartesian3 | |
cesiumViewer.entities.removeAll() | |
scene.requestRender() | |
var radius = 1 | |
var position = camera.position |
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
var cesiumViewer = window.viewer.state ? window.viewer.state.viewer: window.viewer | |
var camera = cesiumViewer.scene.camera | |
var scene = cesiumViewer.scene | |
//var scratchCart3 = new Cesium.Cartesian3() | |
var radius = 5 | |
cesiumViewer.entities.add( | |
{ |
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
console.image = function(url, sizePercent = 100, message) { | |
var image = new window.Image(); | |
image.onload = function() { | |
var style = [ | |
'font-size: 1px;', | |
'padding: ' + this.height/100*sizePercent + 'px ' + this.width/100*sizePercent + 'px;', | |
'background: url('+ url +') no-repeat;', | |
'background-size: contain;', | |
'message: ' + message + ';' |
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
// ==UserScript== | |
// @name Hide Jobs | |
// @namespace http://github.com/Tiny-Giant | |
// @version 1.0.0.1 | |
// @description Hides references to Stack Overflow Jobs | |
// @author @TinyGiant | |
// @include /https?:\/\/(meta\.)?stackoverflow\.com/.*/ | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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
/*globals angular*/ | |
(function () { | |
'use strict'; | |
angular.module('xx.utilities') | |
.filter('html', ['$sce', function ($sce) { | |
return function (text) { | |
var entityMap = { | |
escape: { |
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
var GpsNoTrackingToggleToolView = GpsToggleToolView.extend({ | |
initialize: function(api, button, group) { | |
GpsToggleToolView.prototype.initialize.apply(this, arguments); | |
this.api = api; | |
this.button = button; | |
this.$el.delegate('a#' + this.button.id, 'click', _.bind(this.onClick, this)); | |
this.GPS_STATES = { | |
'off' : _.bind(function off() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.