Skip to content

Instantly share code, notes, and snippets.

View mehdi-alouane's full-sized avatar
:octocat:

Nucleas mehdi-alouane

:octocat:
View GitHub Profile
@mehdi-alouane
mehdi-alouane / settings.jsonc
Created May 15, 2023 13:04 — forked from hyperupcall/settings.jsonc
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@mehdi-alouane
mehdi-alouane / Google Books Search.js
Created August 21, 2016 14:50 — forked from jonathanmeaney/Google Books Search.js
Using google books rest api to search for books
<script>
function view_books()
{
$.getJSON('https://www.googleapis.com/books/v1/volumes?q=food+allergies&maxResults=5', function(data) {
var items = [];
$.each(data, function(key, val) {
items.push('<li id="' + key + '">' + val + '</li>');
});
@mehdi-alouane
mehdi-alouane / api.js
Created July 3, 2016 00:07 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
@mehdi-alouane
mehdi-alouane / Sublime Text 3 Build 3103 License Key - CRACK
Created June 26, 2016 10:10
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@mehdi-alouane
mehdi-alouane / app.js
Created June 8, 2016 19:13 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@mehdi-alouane
mehdi-alouane / gulpfile.js
Created March 18, 2016 21:44 — forked from geelen/gulpfile.js
Harp with BrowserSync! Woo!
var gulp = require('gulp');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var harp = require('harp');
/**
* Serve the Harp Site from the src directory
*/
gulp.task('serve', function () {
harp.server(__dirname + '/src', {
@mehdi-alouane
mehdi-alouane / lyrics.sh
Created March 4, 2016 11:23 — forked from john-kurkowski/lyrics.sh
Search lyrics without leaving the terminal
# Usage: `griot fucking ridiculous`
function griot() {
lynx "http://rapgenius.com/search?q=`echo $@ | perl -p -e 's/\s+/+/g'`";
}
@mehdi-alouane
mehdi-alouane / app.js
Created March 2, 2016 11:35 — forked from rgoldfinger/app.js
real-time markdown editor in React.js
//node/express server routes for editing
// edit a post
router.get('/a/:id/edit', function(req, res) {
Post.findById(req.params.id, function(err, post) {
if (err) {
res.send(err);
} else {
res.render('createPost', {