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 / 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 / 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 / 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:

@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 / isNumber.html
Created September 19, 2016 10:07
isNumber Test Cases
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>QUnit Tests</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="testrunner.js"></script>
<link rel="stylesheet" href="testsuite.css" type="text/css" media="screen" />
<script language="JavaScript" type="text/javascript">
@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 / monitoring-jank.js
Last active June 16, 2017 12:19 — forked from l8on/monitoring-jank.coffee
Monitoring Jank Example
// From here https://gist.github.com/l8on/7378d518a001a87adaf42a00fb7e50be#file-monitoring-jank-coffee
// https://fulcrum.lever.co/monitoring-jank-how-we-found-the-slowest-parts-of-our-ui-b6ffd7386896
var isModernBrowser, isNative, setupJankTracking;
// Simple function that uses a heuristic to tell if a function
// is native code. Luckily this isn't security related code.
isNative = function(fn) {
return /\{\s*\[native code\]\s*\}/.test("" + fn);
};
@radum
radum / fitgrid.css
Created September 14, 2017 07:43
Fitgrid - CSS Grid
/*
_______ ___ _______ _______ ______ ___ ______
| || | | | | || _ | | | | |
| ___|| | |_ _| | ___|| | || | | | _ |
| |___ | | | | | | __ | |_||_ | | | | | |
| ___|| | | | | || || __ || | | |_| |
| | | | | | | |_| || | | || | | |
|___| |___| |___| |_______||___| |_||___| |______|
by Dave Rupert
Read More: https://daverupert.com/2017/09/breaking-the-grid/