Skip to content

Instantly share code, notes, and snippets.

View seniorpreacher's full-sized avatar
🚧

Daniel Salamon seniorpreacher

🚧
  • Budapest, Hungary
View GitHub Profile
@balupton
balupton / LINUX.md
Last active May 27, 2022 10:22
New Machine Start Kit

Linux

Setup

# If inside vmware install vmware tools (these are just as good as the commercial ones)
sudo apt-get install open-vm-tools open-vm-tools-desktop

# Install git
sudo apt-get install git
@seniorpreacher
seniorpreacher / CCNA-solver.js
Created November 21, 2012 10:36
This little code just answers every questions you have in a Cisco CCNA test... (Please don't use it, until your final desperation!)
/*
* Hi, this is a little code, that you can run on a Cisco CCNA test and it will pick the right answers for you.
* Please, learn the lecture!
*
* I can't garantee anything! If you use this and you fail... Well, it's your falt.
* Cisco used to change a bit in the texts of the questions, so I can't garantee that this code will even work after some weeks, but I hope ;)
*
*
*
* To run it, just simply:
@bittersweetryan
bittersweetryan / gist:2787854
Created May 25, 2012 12:44
Flatten a JavaScript Object into a Flat Object With Dot Notation Prop Names
function flatten(obj,prefix){
var propName = (prefix) ? prefix + '.' : '',
ret = {};
for(var attr in obj){
if(_.isArray(obj[attr])){
var len = obj[attr].length;
ret[attr] = obj[attr].join(',');
(function($) {
// Used by dateinput
$.expr = {':': {}};
// Used by bootstrap
$.support = {};
// Used by dateinput
$.fn.clone = function(){
var ret = $();