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
| FROM ubuntu:latest | |
| RUN apt-get update | |
| RUN apt-get upgrade | |
| RUN apt-get install ruby-full -y | |
| RUN apt-get install build-essential -y | |
| RUN apt-get install zlib1g-dev -y | |
| RUN echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc | |
| RUN echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc |
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
| // Reference https://devhints.io/bash | |
| // If statements | |
| if [[1+1=2]] then | |
| echo "String is empty" | |
| elif [[1+1=3]] then | |
| echo "String is not empty" | |
| fi | |
| ^(if|elif)\s\[\[(.*)\]\]\s(then)$ // With T${1}E1${2}S${3} as replacement matches |
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 mobi.grocerymonkey.groceryapp; | |
| import static com.google.common.truth.Truth.assertThat; | |
| import static org.mockito.Mockito.when; | |
| import static org.mockito.Mockito.mock; | |
| import com.google.appengine.tools.development.testing.LocalServiceTestHelper; | |
| import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig; | |
| import com.google.cloud.datastore.DatastoreOptions; |
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
| <div class="page"> | |
| <div class="page-content"> | |
| <div class="block"> | |
| <p>This page created dynamically</p> | |
| </div> | |
| </div> | |
| </div> |
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
| use File::Find; | |
| foreach my $dir (@INC){ | |
| find sub { | |
| print "$File::Find::name<br>" if /\.pm$/; | |
| }, $dir; | |
| } |
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
| #!/usr/local/bin/perl | |
| use 5.10.0; | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| use LWP::RobotUA; | |
| use HTML::TreeBuilder; | |
| use HTML::Element; |
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
| /** | |
| * src/actions/project.js | |
| */ | |
| export const newProject = () => { | |
| return { | |
| type: 'NEW_PROJECT' | |
| } | |
| } |
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 Html exposing (..) | |
| import Html.App as Html | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (..) | |
| import String | |
| -- MAIN | |
| main = | |
| Html.beginnerProgram { model = model, view = view, update = update } |
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
| Detected errors in 1 module. | |
| -- SYNTAX PROBLEM -------------------------------------------------- counter.elm | |
| I ran into something unexpected when parsing your code! | |
| 33| model = 0 | |
| ^ | |
| I am looking for one of the following things: |
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 t(nodeName) { | |
| var elm = document.createElement(nodeName); | |
| if (typeof arguments[1] === 'string' || typeof arguments[2] === 'string') { | |
| elm.innerHTML = arguments[2] || arguments[1]; | |
| } | |
| if (typeof arguments[1] === 'object' && !Array.isArray(arguments[1])) { | |
| // Add attributes | |
| var attr = arguments[1]; | |
| Object.keys(attr).map(function(key) { | |
| elm.setAttribute(key, attr[key]); |
NewerOlder