This file contains 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
<? | |
include './odbc_sql_test_settings.php'; | |
echo phpversion(); | |
date_default_timezone_set('Europe/Warsaw'); | |
$link = odbc_connect(DB_SETTINGS_DSN, DB_SETTINGS_USER, DB_SETTINGS_PASS); | |
$upd_params = array( |
This file contains 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> | |
<!-- | |
Copyright: ©2014 Nux | |
License: CC0 | |
--> | |
<html> | |
<head> | |
<title>Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta charset="UTF-8"> |
This file contains 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
#!/usr/bin/env python | |
import os | |
import zipfile | |
""" | |
Helper class that lets one add whole directory contents. | |
License | |
-------------------- |
This file contains 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
// | |
// Overlay for adding some HTML text on cords specified by bounds over the given map | |
// | |
function overlayText(bounds, HTMLcontent, map, minZoomToBeShow) | |
{ | |
// Now initialize all properties. | |
this.bounds_ = bounds; | |
this.HTMLcontent_ = HTMLcontent; | |
this.map_ = map; |
This file contains 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
// see: https://developers.google.com/maps/documentation/javascript/geocoding | |
var geocoder = new google.maps.Geocoder(); | |
geocoder.geocode({ | |
address: someAddressString, | |
region: 'no' | |
}, | |
function(results, status) { | |
if (status == google.maps.GeocoderStatus.OK) { | |
var location = results[0].geometry.location; | |
latitude.value = location.lat(); |
This file contains 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
/** | |
* Helps applying default filter values from grid to store. | |
* | |
* @example In your window with grid you could do: | |
* <pre> | |
initComponent: function() { | |
this.callParent(); | |
// apply default filters from grid to store | |
var grid = this.down('grid'); |
This file contains 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
/** | |
Simple Frame Postman | |
version 1.1.2 | |
Author: Maciej "Nux" Jaros | |
License: CC-BY or MIT (at ones choosing) | |
Usage (simple setup): | |
This file contains 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
this.smartOpenWebPanel("Translate", "https://translate.google.pl/"); |
This file contains 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
// IE | |
this.openCurrentUrl("c:\\Program Files\\Internet Explorer\\iexplore.exe"); | |
// Firefox Developer Edition | |
this.openCurrentUrl("C:\\Program Files\\Mozilla\\Firefox Developer Edition\\firefox.exe"); | |
// Chrome | |
this.openCurrentUrl("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"); | |
// Edge | |
// for whatever reason this doesn't work for local files (i.e. "file:///...") | |
this.openCurrentUrl("c:\\windows\\system32\\cmd.exe", ["/c", "start", "microsoft-edge:%u"]); |
This file contains 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
/* global Ext */ | |
/** | |
* Cascade window position plugin. | |
* | |
* To use this plugin just add to your window | |
* 1. `'Ext.ux.CascadeWindows'` in `requires` property | |
* 2. `ptype: 'cascadewindows'` in `plugins` property | |
* | |
* @author Maciej "Nux" Jaros |
OlderNewer