Skip to content

Instantly share code, notes, and snippets.

View radum's full-sized avatar
🚀
I can see what you see not

Radu Micu radum

🚀
I can see what you see not
View GitHub Profile
@radum
radum / Default (OSX).sublime-keymap
Last active March 21, 2022 09:51
Sublime Text 3 Configuration Files
[
{ "keys": ["ctrl+pagedown"], "command": "next_view" },
{ "keys": ["ctrl+pageup"], "command": "prev_view" }
]
@radum
radum / DragHereToValidate.bat
Created November 14, 2012 08:01
SublimeText 2 IBM SPSS Dimensions (build system, syntax higlight, snippets, etc)
:: If you want to use a batch file try this. Make a shortcut and drag n drop the file to be validated on it
Call "mrScriptCL.exe" "{path_to_mrs_validator}\ProjectValidator.mrs" /a:mddpath=%1
PAUSE
@radum
radum / QuickSort.vbs
Created November 30, 2012 10:22
VB QuickSort
'! Sort an array of integers ASC
! @author: radum
! @version: v0.1
! Description: Sort an array using this example: QuickSort(arr, 0, arr.Len()-1)
! arr is the array, 0 is the lower start point and 3rd param is the high end point
! if you want to sort only a portion of the array starting from inLow to inHi
!'
Sub QuickSort(vArray[], inLow, inHi)
Dim pivot, tmpSwap, tmpLow, tmpHi
@radum
radum / extract mdd files data
Created January 6, 2014 13:34
Extracts to separate files the Metadata and Routing sections from an IBM Dimensions MDD file.
Dim fso, sourceMDD, routingFile, metadataFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set sourceMDD = CreateObject("MDM.Document")
Set routingFile = fso.CreateTextFile(".\routingFile.txt", True, True)
Set metadataFile = fso.CreateTextFile(".\metadataFile.txt", True, True)
sourceMDD.Open("test.mdd", ,1) 'MDMLib.openConstants.oREAD
@radum
radum / VB SQL
Last active August 3, 2023 00:48
Query MS SQL Server With Excel VBA
' Before we can start you’ll need to add a reference to your VBA project:
' Microsoft ActiveX Data Objects x.x Library
Option Explicit
Private Conn As ADODB.Connection
Function ConnectToDB(Server As String, Database As String) As Boolean
Set Conn = New ADODB.Connection
On Error Resume Next
@radum
radum / google_maps.xml
Created October 25, 2014 15:09 — forked from romuloceccon/google_maps.xml
Custom "Google Maps" source (en-EN) for Mobile Atlas Creator 1.9.16. Save as *.xml in /mapsources.
<customMapSource>
<name>Google Maps</name>
<minZoom>0</minZoom>
<maxZoom>20</maxZoom>
<tileType>PNG</tileType>
<tileUpdate>IfNoneMatch</tileUpdate>
<url>http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&amp;hl=en-EN&amp;x={$x}&amp;y={$y}&amp;z={$z}&amp;s=Galileo&amp;scale=1</url>
<serverParts>0 1 2 3</serverParts>
</customMapSource>
@radum
radum / README.md
Last active August 29, 2015 14:16
Google Maps API wrapper

This creates a Google Map and lets you add 5 markers (this can be customized) on the map using click events.

GoogleMap is the main constructor.

Example on how to use: (code also found in the js file)

var googleMap = new GoogleMap({
    onMarkerAdd: function(marker) {
 var position = marker.getPosition();
{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet
I never found any interesting article like yours. {It’s|It is}
pretty worth enough for me. {In my opinion|Personally|In my view},
if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting.
{Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service.
Do {you have|you’ve} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may
just|may|could} subscribe. Thanks.|
@radum
radum / AMD.js
Created October 26, 2015 09:07
Javascript Module Formats
define(function () { 'use strict';
// This function gets included
function cube ( x ) {
// rewrite this as `square( x ) * x`
// and see what happens!
return x * x * x;
}
console.log( cube( 5 ) ); // 125
@radum
radum / keybase.md
Created November 21, 2015 11:18
keybase.md

Keybase proof

I hereby claim:

  • I am radum on github.
  • I am radumza (https://keybase.io/radumza) on keybase.
  • I have a public key whose fingerprint is 810F 6462 E85C 5A86 40A1 A39C 768F 3EDD 53C5 0857

To claim this, I am signing this object: