Skip to content

Instantly share code, notes, and snippets.

View icflorescu's full-sized avatar
😅
Building lots of stuff with React/Next.js, Svelte/SvelteKit and Node.js

Ionut-Cristian Florescu icflorescu

😅
Building lots of stuff with React/Next.js, Svelte/SvelteKit and Node.js
View GitHub Profile

Keybase proof

I hereby claim:

  • I am icflorescu on github.
  • I am icflorescu (https://keybase.io/icflorescu) on keybase.
  • I have a public key ASAwo3XSvUaJDxtvPADuq-b3Hpv3vL43eK-lYT9SEDPmJwo

To claim this, I am signing this object:

@icflorescu
icflorescu / .eslintrc.js
Last active May 9, 2017 15:03
Set-up Linting for React Native
/*
Install deps:
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
yarn add -D babel-eslint eslint-plugin-react-native
*/
@icflorescu
icflorescu / .eslintrc
Created December 20, 2016 22:38
.eslintrc for react-native
parser: babel-eslint
extends:
- eslint:recommended
- plugin:react/recommended
plugins:
- react
- react-native
env:
browser: true
rules:
@icflorescu
icflorescu / gulp-visual-studio-readme.md
Last active October 20, 2019 19:19
Gulp configuration for Visual Studio

Gulp configuration for Visual Studio

A carefully built productivity workflow to develop contemporary Web Applications in Visual Studio.

Because

  • WebGrease is outdated, non-standard-compliant and generally sucks (even the name...)
  • You want to build web applications that don't suck

What does it do

@icflorescu
icflorescu / develop.sh
Created February 3, 2015 20:49
Application template: Browserify, Backbone, Marionette
#!/bin/sh
if [ "${1}" == '-p' ]; then
export NODE_ENV=production
fi
# Clean JS & CSS in static folder
rm -f static/*
# Build assets & start application
@icflorescu
icflorescu / app.coffee
Last active April 20, 2016 02:15
Complex routing with express.js + CoffeeScript
###
It's incredibly easy to set-up a complex, SEO-friendly routing system using
the powerful CoffeeScript regular expressions and destructuring assignment syntax (to parse/name route parameters).
For instance, the code snippet below will respond to routes like:
/offers/category-automobiles
/offers/category-automobiles/make-alfa-romeo
/offers/category-automobiles/make-alfa-romeo/model-159
@icflorescu
icflorescu / iced-runtime.js
Last active December 15, 2015 03:59
IcedCoffeeScript window-scoped runtime, generated with `iced -I window -F -p -e '' > iced-runtime.js`.
(function() {
var __slice = [].slice;
window.iced = {
Deferrals: (function() {
function _Class(_arg) {
this.continuation = _arg;
this.count = 1;
this.ret = null;
}
@icflorescu
icflorescu / Gemfile
Created August 10, 2012 18:11
Simple RoR configuration: thin, slim, sass and mongo_mapper
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'thin', '>= 1.4.1'
gem 'slim', '>= 1.2.2'
gem 'mongo_mapper', '>= 0.11.2'
gem 'bson_ext', '>= 1.6.4'
# Gems used only for assets and not required
# in production environments by default.
@icflorescu
icflorescu / gist:3171376
Created July 24, 2012 17:34
RESTful API - Accounts Controller
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Accounts RESTful API controller.
*
* @package Nomisma
* @category Controllers
* @author Ionut-Cristian Florescu
*/
class Controller_Api_Accounts extends Controller_Api {
@icflorescu
icflorescu / gist:3170136
Created July 24, 2012 14:14
Project collection item
{
"content": {
"en": {
"title": "Refreshing interior decoration for a studio",
"description": "This project was part..."
},
"ro": {
"title": "Amenajare tinerească a unei garsoniere",
"description": "Proiectul a fost realizat pentru..."
}