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 router.js) - - */ | |
| routes: [ | |
| ... | |
| { | |
| path: '/:which', | |
| name: 'home', | |
| component: Home | |
| } | |
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
| /* create chrome instance */ | |
| chrome = Application("Google Chrome"); | |
| chrome.includeStandardAdditions = true; | |
| /* make a new window and set its first tab */ | |
| win = chrome.Window().make(); | |
| win.tabs[0].url = "http://www.google.com"; | |
| /* make a new tab and push it into window we made */ | |
| tab = win.tabs.push(new chrome.Tab()); |
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
| /* create chrome instance */ | |
| chrome = Application("Google Chrome"); | |
| chrome.includeStandardAdditions = true; | |
| /* grab the window automatically created and set the url of its first tab */ | |
| chrome.windows.byId(1).tabs[0].url = "http://classroom.google.com"; | |
| /* make a new window and set its first tab */ | |
| win = chrome.Window().make(); | |
| win.tabs[0].url = "http://www.challengegalaxy.com"; |
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 'package:flutter/material.dart'; | |
| import 'package:english_words/english_words.dart'; | |
| /* entry point to all flutterland is main, I think */ | |
| void main() => runApp(MyApp()); | |
| /* | |
| -- CREATE THE APP INSTANCE AS A UBER-WIDGET -- | |
| subclass StatelessWidget to create an object to hold the app | |
| */ |
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
| void sayHi( String someText){ | |
| print('Hi, $someText'); | |
| } | |
| void hiToCrowd( List theCrowd ){ | |
| for (var fella in theCrowd){ | |
| sayHi(fella); | |
| } | |
| } |
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 'dart:io'; | |
| void main() { | |
| stdout.writeln('who r u?'); | |
| String input = stdin.readLineSync(); | |
| return respondo(input); | |
| } | |
| void respondo(String responso){ | |
| print('Hello, $responso'); |
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
| void soy(){ | |
| print("I am that I am"); | |
| } | |
| void main() { | |
| soy(); | |
| } |
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
| class Car{ | |
| int wheels = 4; | |
| String modelName; | |
| Car( {String givenModelName} ){ | |
| modelName = givenModelName; | |
| } | |
| } | |
| void main() { |
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 gspread | |
| from oauth2client.service_account import ServiceAccountCredentials | |
| from .models import Student | |
| class StudentDetailView(DetailView): | |
| model = Student | |
| template_name = 'student_detail.html' | |
| def get_context_data(self, *args, **kwargs): | |
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
| defmodule Food do | |
| def test_food(%{ name: "raisins"} = food) do | |
| "The food is tiny, gross #{food.name}. It tastes #{food.taste}." | |
| end | |
| def test_food(food) do | |
| "The food is #{food.name}. It tastes #{food.taste}." | |
| end | |
| end |