// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script downloads and installs git-flow into Cloud9 workspace. | |
# It makes possible to use git-flow for high-level repository operations using Vincent Driessen's branching model. | |
# Create this file in a root of your workspace. | |
# Run in command line: chmod +x install-gitflow-cloud9.sh | |
# And: ./install-gitflow-cloud9.sh | |
# It will take some time to download and compile. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'image_optim' | |
staged_files = `git diff --cached --name-only --diff-filter=ACM`.split("\n") | |
staged_files.select! { |f| f =~ %r{/images/} } | |
if staged_files.any? | |
image_optim = ImageOptim.new(pngout: false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Complete installation process: | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
sudo apt-get update | |
sudo apt-get upgrade | |
cd ~ | |
mkdir git | |
cd ~/git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist: { | |
options:{ | |
style:'compressed' | |
}, | |
files: { | |
'css/style.css' : 'scss/style.scss' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require('express')(), | |
server = require('http').createServer(app), | |
io = require('socket.io').listen(server), | |
fs = require('fs'), | |
util = require('util'); | |
server.listen(8080); | |
// set transport fallback order | |
io.set('transports', [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return zodiac sugn by month and day | |
* | |
* @param day | |
* @param month | |
* @return {string} name of zodiac sign | |
*/ | |
function getZodiacSign(day, month) { | |
var zodiacSigns = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
require 'fileutils' | |
fswebcam_path = `which fswebcam`.strip | |
exit 0 if fswebcam_path.empty? | |
print "Snapshotting your pretty mug..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paths ---------------------------------------------- | |
set realname = "Damir Hasakovic" | |
set imap_user = '[email protected]' | |
set from = "[email protected]" | |
set spoolfile = imaps://imap.gmail.com:993/INBOX | |
set smtp_url = "smtp://[email protected]@smtp.gmail.com:587/" | |
set folder = "imaps://imap.gmail.com:993" | |
set record="+[Gmail]/Sent Mail" | |
set postponed="+[Gmail]/Drafts" | |
set header_cache = ~/.mutt/cache/headers # store headers |