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
| <!-- | |
| Install dependencies with Bower: | |
| bower install PolymerElements/paper-elements#^1.0.7 | |
| --> | |
| <html> | |
| <head> | |
| <title>Auth Example</title> | |
| <link rel="shortcut icon" href="/favicon.png" type="image/x-icon"> |
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
| # Only for Chef client 11 family! | |
| # Bug was fixed in https://github.com/opscode/chef/commit/d6f6928fd1097709189cd78689e89032d4c9318d | |
| class Chef | |
| module Mixin | |
| module ShellOut | |
| def shell_out(*command_args) | |
| cmd = Mixlib::ShellOut.new(*run_command_compatible_options(command_args)) | |
| cmd.live_stream ||= io_for_live_stream | |
| cmd.run_command |
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
| public class Solution { | |
| private int[][] dp; | |
| public boolean isInterleave(String s1, String s2, String s3) { | |
| if (s1.length() + s2.length() != s3.length()) { | |
| return false; | |
| } | |
| if (s3.length() == 0) { | |
| return true; | |
| } | |
| dp = new int[s1.length()][s2.length()]; |
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
| C++: | |
| class Solution { | |
| public: | |
| vector<vector<int> > generateMatrix(int n) { | |
| // Start typing your C/C++ solution below | |
| // DO NOT write int main() function | |
| if(n<=0) return vector<vector<int>>(); | |
| vector<vector<int>> result(n,vector<int>(n)); | |
| int xBeg=0,xEnd=n-1; | |
| int yBeg=0,yEnd=n-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
| C++: | |
| class Solution { | |
| public: | |
| vector<vector<int> > generateMatrix(int n) { | |
| // Start typing your C/C++ solution below | |
| // DO NOT write int main() function | |
| if(n<=0) return vector<vector<int>>(); | |
| vector<vector<int>> result(n,vector<int>(n)); | |
| int xBeg=0,xEnd=n-1; | |
| int yBeg=0,yEnd=n-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
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| window.onload = draw; | |
| function draw(){ |
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
| namespace Alphabet | |
| { | |
| public class AlphabetTest | |
| { | |
| public static readonly string Alphabet = "abcdefghijklmnopqrstuvwxyz0123456789"; | |
| public static readonly int Base = Alphabet.Length; | |
| public static string Encode(int i) | |
| { | |
| if (i == 0) return Alphabet[0].ToString(); |
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
| exports.randeats = function(req, res){ | |
| var key = req.query.key; | |
| var location = encodeURIComponent(req.query.location); | |
| var radius = 16000; | |
| var sensor = false; | |
| var types = "restaurant"; | |
| var keyword = "fast"; | |
| var https = require('https'); | |
| var url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?" + "key=" + key + "&location=" + location + "&radius=" + radius + "&sensor=" + sensor + "&types=" + types + "&keyword=" + keyword; |
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
| ====== | |
| Videos | |
| ====== | |
| DevOps | |
| What is DevOps? by Rackspace - Really great introduction to DevOps | |
| https://www.youtube.com/watch?v=_I94-tJlovg | |
| Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept) |
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
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |