Skip to content

Instantly share code, notes, and snippets.

View rvmladenov's full-sized avatar

Radoslav Mladenov rvmladenov

View GitHub Profile
public static boolean isPrime(int n) {
if (n == 1) {
return false;
}
for (i=2; i<=n/2; i++) {
if (n % i == 0) {
return false;
}
}
Pure CSS slider: http://codepen.io/drygiel/full/rtpnE
Swiper: http://idangero.us/swiper/demos/#.V1p2quR8FYw
Morphing Menu: http://codepen.io/Sergioandrade/pen/onkub
Responsive Slide Toggle Menu: http://cssdeck.com/labs/3fo47n21
Gooey Menu: http://codepen.io/lbebber/pen/LELBEo
@rvmladenov
rvmladenov / MongoDB install service
Created February 26, 2015 19:47
Settings for adding MongoDB as a Windows Service
1/ Add the bin folder to the Windows Path
2/ mongod --remove
3/ "mongod --dbpath=D:\mongodb --logpath=D:\mongodb\log.txt --install" Where 'D:\mongodb' is the mongodb install folder
4/ Open win services (in cmd execute "services.msc") and start the MongoDB service
for(;;) {
console.log("Boo");
}