Skip to content

Instantly share code, notes, and snippets.

View forabi's full-sized avatar
🎯
Focusing

M-Fawaz Orabi forabi

🎯
Focusing
View GitHub Profile
app = angular.module "ng-blog", []
app.controller 'HomeCtrl', ($http, $scope) ->
$scope.posts = [
(
title: "Hello world!",
excerpt: "A simple Hello World!"
)
(
title: "Hello world!",
excerpt: "A simple Hello World!"
@forabi
forabi / rename.js
Last active December 30, 2015 07:29
var fs = require('fs');
var path = require('path');
fs.readdir(process.cwd(), function(err, files){
var newNames = {};
files.forEach(function(file){
console.log(file);
if (file.match(/.+.txt/i)){
console.log('Found text file', file);
fs.readFile(path.join(process.cwd(), file), 'utf8', function(err, data){
newNames[file] = [];
@forabi
forabi / ar.json
Created August 29, 2011 19:58 — forked from cramforce/de.json
lang.json
{
"locale": "ar",
"text": {
"#authors": [
{
"name": "Muhammad Fawwaz Orabi",
"screen-name": "forabi"
}
],
"tweet": {