Skip to content

Instantly share code, notes, and snippets.

View moughamir's full-sized avatar
:shipit:
Looking for Missions

Mohamed Moughamir moughamir

:shipit:
Looking for Missions
View GitHub Profile
@juanra
juanra / install-gitflow-cloud9.sh
Created January 24, 2014 22:28
Script to install git-flow in Cloud9 IDE.
#!/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.
@joyrexus
joyrexus / README.md
Last active May 16, 2025 01:54 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@gsmendoza
gsmendoza / pre-commit
Created October 5, 2013 07:13
Git pre-commit hook for image optimization.
#!/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)
@RIAEvangelist
RIAEvangelist / Install Cloud9 on local or remote computer, server, or raspberry pi
Last active June 6, 2023 03:37
This gist will help you install Cloud9 on your local or remote computer, server, or even your raspberry pi. Many people are having issues at the time of this Gist's creation.
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
@jshawl
jshawl / Gruntfile.js
Last active January 18, 2023 13:52
Grunt + Sass + Autoprefixer
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options:{
style:'compressed'
},
files: {
'css/style.css' : 'scss/style.scss'
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 5, 2025 13:05
A badass list of frontend development resources I collected over time.
@phucat
phucat / app.js
Last active February 27, 2022 02:00
Playing with Node.js and Socket.IO. Testing of socket emit and video, audio streaming.
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', [
@kladov
kladov / getZodiacSign.js
Last active October 17, 2023 04:39
Zodiac sign (javascript)
/**
* Return zodiac sugn by month and day
*
* @param day
* @param month
* @return {string} name of zodiac sign
*/
function getZodiacSign(day, month) {
var zodiacSigns = {
@sstelfox
sstelfox / gist:4709573
Created February 4, 2013 20:40
Linux version of the imagesnap post-commit git hooks. To use create the file .git/hooks/post-commit in any repository you commit in often. Requires you have fswebcam installed (most distros have a package for it). Snapshots are stored in ~/.gitshots.
#!/usr/bin/env ruby
#
require 'fileutils'
fswebcam_path = `which fswebcam`.strip
exit 0 if fswebcam_path.empty?
print "Snapshotting your pretty mug..."
@damirhasakovic
damirhasakovic / muttrc
Created October 6, 2012 09:09
My Mutt config
# 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