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 com.javarush.test.level03.lesson06.task03; | |
/* Семь цветов радуги | |
Выведи на экран текст: семь цветов радуги. | |
В каждой строке должно быть по три цвета, в последней - один. | |
Цвета разделяй пробелом. | |
*/ | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; |
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
#include <stdio.h> | |
static const int SIZE = 1000000; | |
int rank(int key, int arr[]); | |
int main(int argc, char *argv[]) { | |
int array[SIZE]; | |
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
// | |
// main.c | |
// my_linked_list | |
// | |
// Created by Andrei Nechaev on 3/4/15. | |
// Copyright (c) 2015 Andrei Nechaev. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
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
// ConsoleApplication2.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <pxcsensemanager.h> | |
#include <util_render.h> | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
// create the PXCSenseManager |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
let days = [1, 2, 3, 4, 5, 6, 7] | |
for day in days { | |
switch day { | |
case 1...5: | |
println("Weekday") |
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 boto3 | |
import botocore.exceptions | |
from PIL import Image | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket('ajs3') | |
size = 200, 200 | |
def resize(filename): | |
img = Image.open(filename) |
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 main | |
import "net/http" | |
func main() { | |
changeHeaderThenServe := func(h http.Handler) http.HandlerFunc { | |
return func(w http.ResponseWriter, r *http.Request) { | |
h.ServeHTTP(w, r) | |
} | |
} | |
http.Handle("/", changeHeaderThenServe(http.FileServer(http.Dir(".")))) | |
http.ListenAndServe(":8000", nil) |
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 main | |
import "net/http" | |
func main() { | |
changeHeaderThenServe := func(h http.Handler) http.HandlerFunc { | |
return func(w http.ResponseWriter, r *http.Request) { | |
h.ServeHTTP(w, r) | |
} | |
} | |
http.Handle("/", changeHeaderThenServe(http.FileServer(http.Dir(".")))) | |
http.ListenAndServe(":8000", nil) |
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 main | |
import ( | |
"net/http" | |
"text/template" | |
"log" | |
"fmt" | |
) | |
type Page struct { |
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 main | |
import ( | |
"io/ioutil" | |
"os" | |
"log" | |
"strings" | |
"sync" | |
) |
OlderNewer