Skip to content

Instantly share code, notes, and snippets.

@ajduke
ajduke / index.html
Created June 7, 2016 14:13 — forked from anonymous/index.html
mPvwJJ
<div class="wrapper">
<div class="details">
<div class="wrap header">
Create new Project
</div>
<div class="wrap">
<div class="project-name">
<label for="">Project Name</label>
<input type="text" />
</div>
@ajduke
ajduke / index.html
Last active February 12, 2016 17:41 — forked from anonymous/index.html
A simple experiment on new CSS features- JS Bin// source https://jsbin.com/wijeni
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
ul {
box-shadow: 1px 1px 3px #555;
margin:50px auto;
@ajduke
ajduke / JSFUN.md
Last active August 29, 2015 13:56 — forked from azat-co/JSFUN.md

JS FUNdamentals

If it's not fun, it's not JavaScript.

Expressiveness

Programming languages like BASIC, Python, C has boring machine-like nature which requires developers to write extra code that's not directly related to the solution itself. Think about line numbers in BASIC or interfaces, classes and patterns in Java.

On the other hand JavaScript inherits the best traits of pure mathematics, LISP, C# which lead to a great deal of expressiveness (and fun!).

@ajduke
ajduke / .mongorc.js
Last active December 19, 2015 04:39 — forked from sawanoboly/.mongorc.js
including the which is current database
prompt = function() {
// set version
version = db.version();
dbName = db.getName()
// case mongos
if (rs.status().info == 'mongos') {
return rs.status().info + ':[' + version + '] > ';
}
// config or replica
@ajduke
ajduke / git-cleanup.sh
Created December 4, 2012 06:32 — forked from nvie/git-cleanup.sh
Very rough script that cleans up all old branches that are loosely hanging around after a while. Also updates the origin remote.
#!/bin/sh
fix_branch_output () {
# Strips first columns from the output, to remove whitespace and "current
# branch" marker from git-branch's output
cut -c 3-
}
local_branches () {
git branch | fix_branch_output