Skip to content

Instantly share code, notes, and snippets.

View ismnoiet's full-sized avatar

ismnoiet

  • Planet Earth
View GitHub Profile
@ismnoiet
ismnoiet / .jscsrc
Created August 11, 2015 18:45
js code style for jscs it should be installed in each project separaratelly in order to work
{
"excludeFiles": ["node_modules/**", "bower_components/**"],
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
@ismnoiet
ismnoiet / remove-mysq-ubuntu.txt
Created July 21, 2015 13:38
uninstall mysql ubuntu
source: http://askubuntu.com/questions/172514/how-do-i-uninstall-mysql
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
@ismnoiet
ismnoiet / entry
Last active November 10, 2022 17:39
read text from file in C
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
@ismnoiet
ismnoiet / print_php_array.sublime-macro
Created August 13, 2014 20:13
display php arrays in a nice form [write print_r($array) you get echo '<pre>'.print_r($array,true).'</pre>' which is nicer and cleaner to see
[
{
"args": null,
"command": "exit_visual_mode"
},
{
"args":
{
"commands":
[
@ismnoiet
ismnoiet / jqueryCode.js
Created August 3, 2014 15:19
jquery code that helps us to make simple vertical slider
$(document).ready(function(){
var begin = 1;
var end = 5;
var total =0;
$('.item').each(function(){total++;});
// now total contains the number of retrieved rows
for(i=end+1;i<=total;i++){
$("#"+i).appendTo($("#next"));