This file contains hidden or 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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle' | |
| }); |
This file contains hidden or 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
| log_format postdata '$time_local $request $request_body'; | |
| location = /path { | |
| access_log /var/log/nginx/postdata.log postdata; | |
| proxy_pass http://localhost:8080; # <= set your port | |
| } |
This file contains hidden or 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
| /* tested on PhantomJS 1.6 */ | |
| var page = require('webpage').create(), loadInProgress = false, fs = require('fs'); | |
| var htmlFiles = new Array(); | |
| // console.log(fs.workingDirectory); | |
| // console.log(phantom.args[0]); | |
| var curdir = phantom.args[0] || fs.workingDirectory; | |
| var curdirList = fs.list(curdir); |
This file contains hidden or 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
| # Traversing arrays and objects in CoffeeScript | |
| # The array and object we use for testing | |
| arr = [1, 2, 3, 4, 5] | |
| obj = {a: 1, b: 2, c: 3, d: 4, e: 5} | |
| # 'in' has a different meaning in CoffeeScript than in JavaScript | |
| # CS: element in array -> JS: array.indexOf(element) >= 0 | |
| console.log '5 in arr: ' + (5 in arr) |
This file contains hidden or 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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| i:0, | |
| actions:{ | |
| 'increment':function(){ | |
| this.set('i',this.get('i')+1); | |
| } | |
| } |
This file contains hidden or 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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| name:"Vamshi", | |
| toUpper:"VAMSHI", | |
| nameObserver: function(newValue){ | |
| this.set('toUpper', | |
| this.get('name').toUpperCase()) | |
| }.observes('name') |
This file contains hidden or 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
| #!/bin/bash | |
| version=1.0.1 | |
| versionDate="2014-02-14" | |
| function showHelp() { | |
| echo "watchfile - monitor file(s)/command and perform action when changed | |
| Possible ways of usage | |
| ---------------------------------------- |
This file contains hidden or 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
| ### | |
| ### ejabberd configuration file | |
| ### | |
| ### | |
| ### The parameters used in this configuration file are explained in more detail | |
| ### in the ejabberd Installation and Operation Guide. | |
| ### Please consult the Guide in case of doubts, it is included with | |
| ### your copy of ejabberd, and is also available online at | |
| ### http://www.process-one.net/en/ejabberd/docs/ |
This file contains hidden or 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
| sudo apt-get install erlang | |
| sudo apt-get install ejabberd | |
| sudo vim /etc/ejabberd/ejabberd.cfg | |
| %% Admin user | |
| {acl, admin, {user, "koss", "localhost"}}. | |
| %% Hostname | |
| {hosts, ["nocorp.ru"]}. |
This file contains hidden or 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
| [core] | |
| editor = vim | |
| [user] | |
| name = Mike Smullin | |
| email = [email protected] | |
| [color] | |
| branch = auto | |
| diff = auto | |
| interactive = auto | |
| status = auto |