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/sh | |
| PNUMPER=$1; | |
| kill -9 `lsof -w -n -i tcp:$PNUMPER| awk '{print $2}'|awk 'END{print}'`; |
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
| define(['facebook'], function(){ | |
| FB.init({ | |
| appId: 'YOUR_APP_ID' | |
| , status: true | |
| , cookie: true | |
| , xfbml: true | |
| , version : 'v2.0' | |
| }); | |
| FB.getLoginStatus(function(response) { | |
| console.log(response); |
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
| var attachment = { | |
| 'name':'My Super Cool Website' | |
| ,'description':'This is a test of the Facebook Broadcast System. If this was real, you would be reading something useful.' | |
| ,'media':[ | |
| { | |
| 'type':'image' | |
| ,'src':'http://superman-header.jpg' | |
| ,'href':'http://superman-header.jpg' | |
| } | |
| ] |
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
| (function(window){ | |
| var key = "ee0256032e288b780f41513765b59254"; | |
| var ua = window.navigator ? window.navigator.userAgent : | |
| window.request ? window.request.headers['user-agent'] : 'No User Agent' | |
| var isMobile = { | |
| Android: function () { | |
| return ua.match(/Android/i); |
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
| <?php | |
| /** | |
| * | |
| * PHP autoloader script, using SPL_AUTOLOAD_REGISTER. | |
| * It will include all files with namespace, others will be ignored. | |
| * | |
| * namespace follow PSR-0 standard | |
| * | |
| * If using phpunit | |
| * phpunit --bootstrap autoload.php [testFile] |
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
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
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
| angular.element(document.body).injector().get('serviceName') |
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
| #This configuration has been tested on GitLab 6.0.0 and GitLab 6.0.1 | |
| #Note this config assumes unicorn is listening on default port 8080. | |
| #Module dependencies | |
| # mod_rewrite | |
| # mod_proxy | |
| # mod_proxy_http | |
| # Put this after the other LoadModule directives | |
| LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so |
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
Show hidden characters
| { | |
| "font_size": 9, | |
| "ignored_packages": | |
| [ | |
| "Vintage", | |
| "SublimeCodeIntel" | |
| ], | |
| "open_files_in_new_window": false | |
| } |
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
| { | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "AngularJS", | |
| "AngularJS Snippets", | |
| "Code Snippets Helper", | |
| "CSS Format", |
OlderNewer