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 | |
| policy=${HOME}/.jstatd.all.policy | |
| [ -r ${policy} ] || cat >${policy} <<'POLICY' | |
| grant codebase "file:${java.home}/../lib/tools.jar" { | |
| permission java.security.AllPermission; | |
| }; | |
| POLICY | |
| jstatd -J-Djava.security.policy=${policy} & |
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
| protractor.wrapDriver | |
| protractor.setInstance | |
| protractor.getInstance | |
| protractor.By | |
| protractor.By.binding | |
| protractor.By.select | |
| protractor.By.selectedOption | |
| protractor.By.input | |
| protractor.By.repeater |
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 | |
| echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | |
| apt-get update | |
| apt-get install -y mysql-server curl apache2 git-core php5 php5-mysql php5-curl php5-gd php5-mcrypt | |
| #dpkg-divert --local --rename --add /sbin/initctl | |
| #ln -s /bin/true /sbin/initctl |
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
| package mx.arux.ng; | |
| import static java.nio.file.StandardOpenOption.CREATE; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.Collection; | |
| import java.util.Collections; |
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.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
| .run(function(DB) { | |
| DB.init(); | |
| }); |
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 file contains all the classes related to a | |
| // market. | |
| // ///////////////////////////////////////////////// | |
| var log4js = require('log4js'); | |
| var logger = log4js.getLogger(require('path').basename(__filename, '.js')); | |
| require('es6-collections'); | |
| var _ = require('underscore'); | |
| /** |
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
| <!DOCTYPE html> | |
| <html ng-app="test"> | |
| <head> | |
| <title>Performance Comparison for Knockout, Angular and React</title> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.css" rel="stylesheet" /> | |
| <style type="text/css"> | |
| * { box-sizing:border-box; } | |
| body { padding:30px 0; } | |
| h2 { margin:0; margin-bottom:25px; } | |
| h3 { margin:0; padding:0; margin-bottom:12px; } |
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 urls = { | |
| react: 'http://run.plnkr.co/plunks/Wwgjjpl9NHMO5Nd1TUyN/', | |
| ember: 'https://dbmonster.firebaseapp.com/', | |
| underscore: 'http://jashkenas.github.io/dbmonster/', | |
| ractive: 'http://www.rich-harris.co.uk/ractive-dbmonster/', | |
| paperclip: 'http://paperclip-dbmonster.herokuapp.com/' | |
| } | |
| var browserPerf = require('browser-perf'); | |
| var FILE = 'data.json'; |
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 logClass(target: any) { | |
| // save a reference to the original constructor | |
| var original = target; | |
| // a utility function to generate instances of a class | |
| function construct(constructor, args) { | |
| var c : any = function () { | |
| return constructor.apply(this, args); | |
| } |
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
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
OlderNewer