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
| create or replace function kalender(p_tahun int, p_bulan int) returns text LANGUAGE plpgsql | |
| AS $function$ | |
| declare | |
| y int; | |
| m int; | |
| d_start date; | |
| d_end date; | |
| nb int; | |
| c int; | |
| l text; |
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
| html, body, .full{ | |
| height: 100%; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| /* Webfont: Lato-Black */@font-face { | |
| font-family: 'Lato'; | |
| src: url('fonts/Lato-Black.eot'); /* IE9 Compat Modes */ | |
| src: url('fonts/Lato-Black.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
| url('fonts/Lato-Black.woff2') format('woff2'), /* Modern Browsers */ |
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
| app.directive('edit', function() { | |
| return { | |
| restrict: 'A', | |
| require: 'ngModel', | |
| scope: { | |
| state: '=state', | |
| }, | |
| link: function(scope, element, attrs, ngModel) { | |
| function read() { |
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 n.nspname AS schema | |
| ,proname AS fname | |
| ,proargnames AS args | |
| ,t.typname AS return_type | |
| ,pg_get_functiondef(p.oid) as definition | |
| FROM pg_proc p | |
| JOIN pg_type t | |
| ON p.prorettype = t.oid | |
| LEFT OUTER | |
| JOIN pg_description d |
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
| function isChatMessage(message) { | |
| if (message.__x_isSentByMe) { | |
| return false; | |
| } | |
| if (message.__x_isNotification) { | |
| return false; | |
| } | |
| if (!message.__x_isUserCreatedType) { | |
| return false; | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <link rel="stylesheet" href="http://dev.openlayers.org/theme/default/style.css" type="text/css"> | |
| <link rel="stylesheet" href="http://dev.openlayers.org/examples/style.css" type="text/css"> | |
| <script src="http://dev.openlayers.org/OpenLayers.js"></script> |
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 contacts = []; // contoh 1 | |
| const bulan = [ | |
| 'JAN','FEB','MAR','APR','MEI','JUN', | |
| 'JUL','AGS','SEP','OKT','NOV','DES' | |
| ]; // contoh 2 | |
| var data = new Array(10); // contoh 3 | |
| var list = new Array(10,2); // contoh 4 |
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
| function getDMS2DD(days, minutes, seconds, direction) { | |
| direction.toUpperCase(); | |
| var dd = days + minutes/60 + seconds/(60*60); | |
| //alert(dd); | |
| if (direction == "S" || direction == "W") { | |
| dd = dd*-1; | |
| } // Don't do anything for N or E | |
| return dd; | |
| } |
OlderNewer