This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('solisPaiementApp.directives') | |
.directive('myDatepicker', ['$timeout', function ($timeout) { | |
return { | |
restrict: 'A', | |
require: ['^?form', 'ngModel'], | |
scope: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"folder_exclude_patterns": | |
[ | |
"dist", | |
"node_modules", | |
".git" | |
], | |
"font_options": | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg | |
cl_autowepswitch "0" // we dont want to pick up & switch to a rifle up if we're in the middle of firing | |
cl_disablefreezecam "1" | |
cl_downloadfilter "nosounds" | |
cl_disablehtmlmotd "1" // Disables The Servers Message of The Day. | |
cl_forcepreload "1" // Preloads The Whole Map & Sounds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.linux.com/community/blogs/133-general-linux/850945-setup-mutt-with-gmail-on-centos-and-ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup a service in /etc/init.d | |
https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian | |
# Don't forget the LSB tags | |
http://help.directadmin.com/item.php?id=379 | |
# Example on a script called blah: | |
$ update-rc.d blah defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /!\ May change whether root or not | |
netstat -pln [| grep PORT_NB] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Array | |
var list = ['my', 'str', 'list']; | |
if (~list.indexOf('my')) { | |
console.log('the `list` array contains \'my\''); | |
} | |
if (!~list.indexOf('number')) { | |
console.log('the `list` array does not contain \'number\''); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$resource(a, b, { | |
getSomething: { | |
method: 'GET', | |
url: baseUrl + ':id' // work if you pass the `id` param in the parameters object | |
}, | |
postSomething: { | |
method: 'POST', | |
url: baseUrl + ':id', // you need to add the next line to make it work for post requests (didn't try with other verbs) | |
params: { id: '@id' } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See http://fr.slideshare.net/pirhilton/how-to-name-things-the-hardest-problem-in-programming by @hilton | |
Summary of naming things badly : | |
- meaningless: foo | |
- too general: data | |
- too short: a | |
- too long: text_correction_by_editor | |
- abbreviated: acc (id is the only acceptable abbreviation) | |
- vague: InvoiceManager | |
- wrong: order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// explode -> .split | |
console.log(['Hello', 'World'].join()) // ',' is optional | |
// → "Hello,World" | |
// implode -> .join | |
console.log('Hello,World'.split(',')) | |
// → Array [ "Hello", "World" ] |