Skip to content

Instantly share code, notes, and snippets.

@codrineugeniu
codrineugeniu / .vimrc
Created March 16, 2023 13:40
My .vimrc config file
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
@codrineugeniu
codrineugeniu / .gitconfig
Created March 16, 2023 13:39
The gitconfig I use
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = <name>
email = <email>
[core]
editor = vim
[color "branch"]
@codrineugeniu
codrineugeniu / .bashrc
Last active March 16, 2023 13:42
The .bashrc config I use, found somewhere on the web.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@codrineugeniu
codrineugeniu / Hints.md
Last active April 8, 2020 08:20
VS Code hints

Some useful hints for developing react apps

Extensions and IDE

Most developers I know prefer to use Visual Studio Code, but some preffer Jetbrains Webstorm, which is also a good option.

For VSCode, some useful extensions are:

  • auto close tag formulahendry.auto-close-tag
  • auto import - ES6 & TS moppitz.vscode-extension-auto-import
@codrineugeniu
codrineugeniu / readingIndicator.js
Created September 12, 2017 12:51 — forked from maticrivo/readingIndicator.js
Creates a reading indicator
(function(){
var Indicator = function(){
var self = this, bar, latestKnownScrollY, ticking;
this.init = function init() {
latestKnownScrollY = window.scrollY;
ticking = false;
self.createIndicator();
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai]
"Colour21"="255,255,255"
"Colour20"="245,222,179"
"Colour19"="200,240,240"
"Colour18"="0,217,217"
"Colour17"="179,146,239"
"Colour16"="174,129,255"
"Colour15"="122,204,218"
@codrineugeniu
codrineugeniu / gist:3874787
Created October 11, 2012 19:11
Pidgin Solarized Colorscheme
# Zoresvit (c) 2012 <zoresvit@gmail.com>
# Solarized colorscheme for pidgin. This file seats in
# ~/.purple/gtkrc-2.0
style "pidgin-solarized" {
font_name = "Sans 11"
base[NORMAL] = "#002B36"
text[NORMAL] = "#839496"
# Change the color of hyperlinks.
GtkIMHtml::hyperlink-color = "#268BD2"
#!/bin/bash
#Which
Grep="`/usr/bin/which grep`"
Awk="`/usr/bin/which awk`"
Cat="`/usr/bin/which cat`"
Sed="`/usr/bin/which sed`"
Curl="`/usr/bin/which curl`"
# Scrape Nagios
@codrineugeniu
codrineugeniu / lolwat.js
Created August 10, 2012 19:23 — forked from mathiasbynens/lolwat.js
Fun with v8’s Number#toString bug
var number = 0,
increment = 0.00000000000001, // smallest value that makes a difference
result,
matches,
match;
for (; number < 100; number += increment) {
result = number.toString(33);
matches = result.match(/[a-z]+/g) || [];
match = matches.indexOf('wtf');
Public Class TimelineMessage
Public datesent As String
Public sender As String
Public senderID As Integer
Public target As String
Public targetID As Integer
Public ID As Integer
Public body As String
Public type As MessageType