text:
<repo_name>vischlum/DrQuine<file_sep>/Colleen/ASM/Colleen.s
.extern printf;
.global main;

.text
main:
  # The GNU Assembler, commonly known as gas, is the assembler used by the GNU Project.
  call gasgasgas;
  push %rbx;
  lea format(%rip), %rdi;
  mov $10, %rsi;
  mov $34, %rdx;
  lea format(%rip), %rcx;
  xor %rax, %rax;
  call printf;
  mov $0, %rax;
  pop %rbx;
  ret;
# https://www.youtube.com/watch?v=atuFSv2bLa8
gasgasgas:
  ret;

.data
format:.asciz ".extern printf;%1$c.global main;%1$c%1$c.text%1$cmain:%1$c  # The GNU Assembler, commonly known as gas, is the assembler used by the GNU Project.%1$c  call gasgasgas;%1$c  push %rbx;%1$c  lea format(%rip), %rdi;%1$c  mov $10, %rsi;%1$c  mov $34, %rdx;%1$c  lea format(%rip), %rcx;%1$c  xor %rax, %rax;%1$c  call printf;%1$c  mov $0, %rax;%1$c  pop %rbx;%1$c  ret;%1$c# https://www.youtube.com/watch?v=atuFSv2bLa8%1$cgasgasgas:%1$c  ret;%1$c%1$c.data%1$cformat:.asciz %2$c%3$s%2$c%1$c"
<file_sep>/Colleen/C/Makefile
.PHONY: all clean fclean re test

NAME = Colleen
FLAGS = -Wall -Wextra -Werror
SRC = Colleen.c
OBJ = $(SRC:.c=.o)
TEST = tmp_Colleen

all: $(NAME)

$(NAME): $(OBJ)
	@clang $(FLAGS) $(SRC) -o $(NAME)

clean:
	@/bin/rm -rf $(OBJ)

fclean: clean
	@/bin/rm -rf $(NAME)
	@/bin/rm -rf $(TEST)

re: fclean all

test: re
	@./$(NAME) > $(TEST)
	diff -s $(TEST) $(SRC)
<file_sep>/Colleen/C/Colleen.c
#include <stdio.h>

const char *data[] = {
  "  NULL};",
  "",
  "void print_string(const char *str)",
  "{",
  "  const char *ptr;",
  "  printf(\"  \\\"\");",
  "  for (ptr = str; *ptr != 0; ptr++)",
  "  if (*ptr == '\\\\')",
  "  printf(\"\\\\\\\\\");",
  "  else if (*ptr == '\"')",
  "  printf(\"\\\\\\\"\");",
  "  else",
  "  putchar(*ptr); ",
  "  printf(\"\\\",\\n\");",
  "}",
  "",
  "// Cette série se déroule à Colorado Springs dans l'Ouest sauvage américain, et débute en 1867.",
  "",
  "int main(void)",
  "{",
  "  // Elle met en scène une femme médecin originaire de Boston, <NAME>.",
  "  const char **ptr;",
  "  printf(\"#include <stdio.h>\\n\\n\");",
  "  printf(\"const char *data[] = {\\n\");",
  "  for (ptr = data; *ptr != NULL; ptr++)",
  "  print_string(*ptr);",
  "  for (ptr = data; *ptr != NULL; ptr++)",
  "  printf(\"%s\\n\", *ptr);",
  "  return 0;",
  "}",
  NULL};

void print_string(const char *str)
{
  const char *ptr;
  printf("  \"");
  for (ptr = str; *ptr != 0; ptr++)
  if (*ptr == '\\')
  printf("\\\\");
  else if (*ptr == '"')
  printf("\\\"");
  else
  putchar(*ptr);
  printf("\",\n");
}

// Cette série se déroule à Colorado Springs dans l'Ouest sauvage américain, et débute en 1867.

int main(void)
{
  // Elle met en scène une femme médecin originaire de Boston, <NAME>.
  const char **ptr;
  printf("#include <stdio.h>\n\n");
  printf("const char *data[] = {\n");
  for (ptr = data; *ptr != NULL; ptr++)
  print_string(*ptr);
  for (ptr = data; *ptr != NULL; ptr++)
  printf("%s\n", *ptr);
  return 0;
}
<file_sep>/Sully/C/Makefile
.PHONY: all clean fclean re test

NAME = Sully
FLAGS = -Wall -Wextra -Werror
SRC = Sully.c
OBJ = $(SRC:.c=.o)
TEST = Sully_5.c

all: $(NAME)

$(NAME): $(OBJ)
	@clang $(FLAGS) $(SRC) -o $(NAME)

clean:
	@/bin/rm -rf $(OBJ)

fclean: clean
	@/bin/rm -rf $(NAME)
	@/bin/rm -rf Sully_*

re: fclean all

test: re
	@./$(NAME)
	diff -s $(SRC) $(TEST)
<file_sep>/Grace/ASM/Grace.s
.macro DATA_FOPEN
.data
kid: .asciz "Grace_kid.s"
mode: .asciz "w"
.endm

.macro DATA_FPRINTF
.data
code: .asciz ".macro DATA_FOPEN%1$c.data%1$ckid: .asciz %2$cGrace_kid.s%2$c%1$cmode: .asciz %2$cw%2$c%1$c.endm%1$c%1$c.macro DATA_FPRINTF%1$c.data%1$ccode: .asciz %2$c%3$s%2$c%1$c.endm%1$c%1$c# Gas est une commune française située dans le département d'Eure-et-Loir, en région Centre-Val de Loire.%1$c%1$c.macro Grace%1$c.extern fprintf, fopen, fclose, exit;%1$cDATA_FOPEN%1$cDATA_FPRINTF%1$c.global main;%1$c%1$c.text%1$cmain:%1$c  push %rbx;%1$c  lea kid(%rip), %rdi;%1$c  lea mode(%rip), %rsi;%1$c  call fopen;%1$c  mov %rax, %rbx;%1$c  cmp $0, %rbx;%1$c  je fopen_fail;%1$c  mov %rbx, %rdi;%1$c  lea code(%rip), %rsi;%1$c  mov $10, %rdx;%1$c  mov $34, %rcx;%1$c  lea code(%rip), %r8;%1$c  xor %rax, %rax;%1$c  call fprintf;%1$c  mov %rbx, %rdi;%1$c  call fclose;%1$c  mov $0, %rax;%1$c  pop %rbx;%1$c  ret;%1$c%1$cfopen_fail:%1$c  mov $1, %rdi;%1$c  call exit;%1$c.endm%1$cGrace%1$c"
.endm

# Gas est une commune française située dans le département d'Eure-et-Loir, en région Centre-Val de Loire.

.macro Grace
.extern fprintf, fopen, fclose, exit;
DATA_FOPEN
DATA_FPRINTF
.global main;

.text
main:
  push %rbx;
  lea kid(%rip), %rdi;
  lea mode(%rip), %rsi;
  call fopen;
  mov %rax, %rbx;
  cmp $0, %rbx;
  je fopen_fail;
  mov %rbx, %rdi;
  lea code(%rip), %rsi;
  mov $10, %rdx;
  mov $34, %rcx;
  lea code(%rip), %r8;
  xor %rax, %rax;
  call fprintf;
  mov %rbx, %rdi;
  call fclose;
  mov $0, %rax;
  pop %rbx;
  ret;

fopen_fail:
  mov $1, %rdi;
  call exit;
.endm
Grace
<file_sep>/Sully/C/Sully.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define DATA "#include <stdio.h>%1$c#include <stdlib.h>%1$c#include <unistd.h>%1$c%1$c#define DATA %2$c%4$s%2$c%1$c%1$cint main(void) {%1$c  int i = %3$d;%1$c  if (i <= 0)%1$c    return (0);%1$c  char str[1000];%1$c  sprintf(str, %2$cSully_%%d.c%2$c, i);%1$c  if (-1 != access(str, F_OK))%1$c    i--;%1$c  sprintf(str, %2$cSully_%%d.c%2$c, i);%1$c  FILE *fd = fopen(str, %2$cw%2$c);%1$c  if (NULL == fd)%1$c    return (1);%1$c  fprintf(fd, DATA, 10, 34, i, DATA);%1$c  fclose(fd);%1$c  sprintf(str, %2$cclang -Wall -Wextra -Werror Sully_%%1$d.c -o Sully_%%1$d && chmod +x Sully_%%1$d && ./Sully_%%1$d%2$c, i);%1$c  system(str);%1$c  return (0);%1$c}"

int main(void) {
  int i = 5;
  if (i <= 0)
    return (0);
  char str[1000];
  sprintf(str, "Sully_%d.c", i);
  if (-1 != access(str, F_OK))
    i--;
  sprintf(str, "Sully_%d.c", i);
  FILE *fd = fopen(str, "w");
  if (NULL == fd)
    return (1);
  fprintf(fd, DATA, 10, 34, i, DATA);
  fclose(fd);
  sprintf(str, "clang -Wall -Wextra -Werror Sully_%1$d.c -o Sully_%1$d && chmod +x Sully_%1$d && ./Sully_%1$d", i);
  system(str);
  return (0);
}<file_sep>/Grace/C/Grace.c
#include <stdio.h>

// Le titre francophone de la série n'est pas une traduction fidèle du titre américain.

#define NAME Grace
#define STR "#include <stdio.h>%1$c%1$c// Le titre francophone de la série n'est pas une traduction fidèle du titre américain.%1$c%1$c#define NAME Grace%1$c#define STR %2$c%4$s%2$c%1$c#define MAIN int main(void) {%3$c%1$c  FILE *kid = fopen(%2$c./Grace_kid.c%2$c, %2$cw%2$c);%3$c%1$c  if (NULL == kid) return (1);%3$c%1$c  fprintf(kid, STR, 10, 34, 92, STR);%3$c%1$c  fclose(kid);%3$c%1$c  return (0);}%1$cMAIN"
#define MAIN int main(void) {\
  FILE *kid = fopen("./Grace_kid.c", "w");\
  if (NULL == kid) return (1);\
  fprintf(kid, STR, 10, 34, 92, STR);\
  fclose(kid);\
  return (0);}
MAIN<file_sep>/Grace/ASM/Makefile
.PHONY: all clean fclean re test

NAME = Grace
FLAGS = -Wall -Wextra -Werror -no-pie
SRC = Grace.s
OBJ = $(SRC:.s=.o)
TEST = Grace_kid.s

all: $(NAME)

$(NAME): $(OBJ)
	@gcc $(FLAGS) $(SRC) -o $(NAME)

clean:
	@/bin/rm -f $(OBJ)

fclean: clean
	@/bin/rm -rf $(NAME)
	@/bin/rm -rf $(TEST)

re: fclean all

test: re
	@./$(NAME)
	diff -s $(SRC) $(TEST)
<file_sep>/README.md
# DrQuine
> A quine is a computer program which takes no input and produces a copy of its own source code as its only output. ([Wikipedia](https://en.wikipedia.org/wiki/Quine_(computing)))

The objective of this 42 School project is to write 3 differents quines, in 3 different languages : C, Assembly and a language of our choosing (Racket, in my case).
This code has been tested both on my own computers (Fedora 32/openSuse Tumbleweed) and on the VM provided by the school (Xubuntu 18.04).

Here's a quick overview of what's expected for each quine (more details are available in the [subject](dr_quine.en.pdf)) :
#### Colleen
- The program must simply display a copy of its own source code as its only output.
- There must be a `main` function and another function (to be called from `main`).
- There must be 2 comments (one inside `main`, one outside of our program).

#### Grace
- The program must writes a copy of its own source code in a file called `Grace_kid.c`/`Grace_kid.s`/`Grace_kid.rkt`
- There must be a single comment.
- No `main` must be declared.
- All the code must fit in 3 `#define` (in C) and the program will run by calling a macro. Since not all languages have `#define`, the subject asks us to adapt to the specifics of the language:
  - ASM: Since I used the [GNU Assembler](https://en.wikipedia.org/wiki/GNU_Assembler), I considered [macro](https://sourceware.org/binutils/docs-2.34/as/Macro.html#index-macro-directive) to be the best equivalent.
  - Racket: I used [`define-syntax-rule`](https://docs.racket-lang.org/reference/stx-patterns.html?q=define-syntax-rule#%28form._%28%28lib._racket%2Fprivate%2Fmisc..rkt%29._define-syntax-rule%29%29).

#### Sully
- The program must set an integer `i` to 5.
- The first execution of the binary `Sully_5` will do the necessary to create a new binary `Sully_4`, which will create `Sully_3` and so on. E.g. in C, we have to write the code in `Sully_4.c`, compile it and launch the resulting binary `Sully_4`.
- The resulting program is only executed if `i` is greater than 0.
- The only difference allowed in the source code of all these programs is the initial value of `i`:
```
$> diff Sully_5.c Sully_0.c
8c8
<   int i = 5;
---
>   int i = 0;
```

branch_name: refs/heads/master

languages:
Makefile
Markdown
C
Unix Assembly

repo_language: Makefile

repo_name: vischlum/DrQuine


text:
<repo_name>My-work-hichem/youtube-clone-mevn<file_sep>/README.md
# youtube-clone-mevn
mevn youtube

branch_name: refs/heads/main

repo_language: Markdown

repo_name: My-work-hichem/youtube-clone-mevn


text:
<repo_name>Neha802R/BALLOON-BURSTER-_-2<file_sep>/README.md
# BALLOON-BURSTER-_-2
burst more balloons , score more balloons


text:
<file_sep>Nad.vim
=========

My spiced up vim config.
Forked from The official Vim distro of BNOTIONS, horse.vim

Install
-------

```
wget -qO- https://github.com/andela-nenegesi/nad.vim/raw/master/install.sh | bash
```


text:
<file_sep>//
//  ViewController.swift
//  ZCycleView
//
//  Created by mengqingzheng on 2017/11/18.
//  Copyright © 2017年 MQZHot. All rights reserved.
//

import UIKit
import SDWebImage

let width = UIScreen.main.bounds.size.width
let height = UIScreen.main.bounds.size.height

class ViewController: UIViewController {

    @IBOutlet weak var cycleView1: ZCycleView!
    @IBOutlet weak var cycleView2: ZCycleView!
    @IBOutlet weak var cycleView3: ZCycleView!
    @IBOutlet weak var cycleView4: ZCycleView!
    @IBOutlet weak var cycleView5: ZCycleView!

    override func viewDidLoad() {
        super.viewDidLoad()

        // example 01
        cycleView1.placeholderImage = #imageLiteral(resourceName: "placeholder")
        cycleView1.setUrlsGroup(["http://chatm-icon.oss-cn-beijing.aliyuncs.com/pic/pic_20171101181927887.jpg",
                                 "http://chatm-icon.oss-cn-beijing.aliyuncs.com/pic/pic_20171114171645011.jpg",
                                 "http://chatm-icon.oss-cn-beijing.aliyuncs.com/pic/pic_20171114172009707.png"])
        cycleView1.scrollDirection = .vertical
        cycleView1.delegate = self

        // example 02
        cycleView2.delegate = self
        cycleView2.timeInterval = 3
        cycleView2.placeholderImage = #imageLiteral(resourceName: "placeholder")
        DispatchQueue.main.asyncAfter(deadline: .now()+2) {
            self.cycleView2.setUrlsGroup(["http://t.cn/RYMuvvn",
                                          "http://t.cn/RYVfnEO",
                                          "http://t.cn/RYVf1fd",
                                          "http://t.cn/RYVfgeI",
                                          "http://t.cn/RYVfsLo"])
        }
        cycleView2.itemSize = CGSize(width: 240, height: 90)
        cycleView2.itemZoomScale = 1.2

        // example 03
        cycleView3.setTitlesGroup(["更多title/item/pageControl使用方式，请参考API",
                                   "GitHub: https://github.com/MQZHot/ZCycleView",
                                   "如有问题，欢迎issue，联系QQ：735481274",
                                   "或者联系邮箱 ---- <EMAIL>",
                                   "欢迎star✨✨✨✨✨✨，谢谢支持"])
        cycleView3.scrollDirection = .vertical

        // example 04
        cycleView4.setImagesGroup([#imageLiteral(resourceName: "pic1"),
                                   #imageLiteral(resourceName: "pic2"),
                                   #imageLiteral(resourceName: "pic3"),
                                   #imageLiteral(resourceName: "pic4")],
                                  titlesGroup: ["天天特价 -- 超值量贩，底价疯抢天天特价",
                                                "一缕情丝，一缕温暖",
                                                "快速匹配，及时推送",
                                                "气质春装，一件包邮"])
        cycleView4.delegate = self
        cycleView4.itemSize = CGSize(width: width-160, height: (width-160)*300/750)
        cycleView4.itemSpacing = 40
        cycleView4.itemZoomScale = 1.2

        // example 05
        let titles = ["正在直播·2017维密直播大秀\n天使惊艳合体性感开撩",
                      "猎场-会员抢先看\n胡歌陈龙联手戳穿袁总阴谋",
                      "我的！体育老师\n好样的！前妻献媚讨好 张嘉译一口回绝",
                      "小宝带你模拟断案！\n开局平民，晋升全靠运筹帷幄"]
        cycleView5.delegate = self
        cycleView5.isInfinite = true
        cycleView5.isAutomatic = true
        cycleView5.timeInterval = 3
        cycleView5.setImagesGroup([#imageLiteral(resourceName: "p700-300-1"),
                                   #imageLiteral(resourceName: "p700-300-2"),
                                   #imageLiteral(resourceName: "p700-300-3"),
                                   #imageLiteral(resourceName: "p700-300-4"),
                                   #imageLiteral(resourceName: "p700-300-5")],titlesGroup: titles)
        cycleView5.itemSize = CGSize(width: width-40, height: (width-40)*30/70)
        cycleView5.itemSpacing = 5
    }
}

extension ViewController: ZCycleViewProtocol {
    func cycleViewConfigureDefaultCellImage(_ cycleView: ZCycleView, imageView: UIImageView, image: UIImage?, index: Int) {
        if cycleView == cycleView4 {
            imageView.image = image
            imageView.layer.borderColor = UIColor.gray.cgColor
            imageView.layer.borderWidth = 1
        }
        if cycleView == cycleView5 {
            imageView.image = image
        }
    }

    func cycleViewConfigureDefaultCellImageUrl(_ cycleView: ZCycleView, imageView: UIImageView, imageUrl: String?, index: Int) {
        if cycleView == cycleView1 {
            imageView.sd_setImage(with: URL(string: imageUrl!), placeholderImage: cycleView.placeholderImage)
        }
        if cycleView == cycleView2 {
            imageView.sd_setImage(with: URL(string: imageUrl!), placeholderImage: cycleView.placeholderImage)
        }
    }

    func cycleViewConfigureDefaultCellText(_ cycleView: ZCycleView, titleLabel: UILabel, index: Int) {
        if cycleView == cycleView4 {
            titleLabel.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.6)
            titleLabel.textColor = .white
            titleLabel.font = UIFont.systemFont(ofSize: 13)
        }
        if cycleView == cycleView5 {
            let title = titleLabel.text ?? ""
            let arr = title.components(separatedBy: "\n")
            let attriStr = NSMutableAttributedString(string: title)
            attriStr.addAttributes([.foregroundColor: UIColor.green, .font: UIFont.systemFont(ofSize: 13)], range: NSMakeRange(0, arr[0].count))
            if arr.count > 1 {
                attriStr.addAttributes([.foregroundColor: UIColor.white, .font: UIFont.systemFont(ofSize: 11)], range: NSMakeRange(arr[0].count+1, arr[1].count))
            }
            titleLabel.attributedText = attriStr

            titleLabel.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.2)
            titleLabel.numberOfLines = 0
            var frame = titleLabel.frame
            frame.origin.y = frame.size.height+frame.origin.y-40
            frame.size.height = 40
            titleLabel.frame = frame
        }
    }
    func cycleViewConfigurePageControl(_ cycleView: ZCycleView, pageControl: ZPageControl) {
        if cycleView == cycleView1 {
            pageControl.pageIndicatorTintColor = UIColor.green
            pageControl.currentPageIndicatorTintColor = UIColor.red
        }
        if cycleView == cycleView2 {
            pageControl.isHidden = true
        }
        if cycleView == cycleView4 {
            pageControl.dotImage = #imageLiteral(resourceName: "github")
            pageControl.currentDotImage = #imageLiteral(resourceName: "evernote")
            pageControl.dotSize = CGSize(width: 16, height: 16)
            pageControl.alignment = .right
            var frame = pageControl.frame
            frame.origin.y = frame.size.height+frame.origin.y-18
            frame.size.height = 18
            pageControl.frame = frame
        }
        if cycleView == cycleView5 {
            pageControl.alignment = .right
            pageControl.spacing = 10
            pageControl.dotSize = CGSize(width: 20, height: 10)
        }
    }
}

repo_language: Swift

repo_name: LiJianiOS/ZCycleView


text:
<file_sep>// Playground - noun: a place where people can play

// <NAME>  Due 10/5/2015
// Fibonacci Sequence : Lab Assignment (week 7)

// Write a function that calculates and displays all the Fibonacci number
// from 0 to 1000:  f(n) = f(n-1) + f(n-2)  where f(0) = 0 and f(1)=1  OR
// f(1) = 1 and f(2) = 1        I’ll just pick to start from f(0) = 0.

import UIKit

// ********************
// Variables
// *********************
var j : Int                 // array index into fibonacci sequence
var fib : [Int] = [0]       // array that will eventually contain
                            //   fibonacci sequence.  First element
                            //   already initialized

// *****************************
// closure code
// *****************************
// Recieves an int n (index into fibonacci sequence) so returns
//     0 if n is 0 and returns 1 if n is 1.  From there it returns
//     the sum of the previous 2.
let closure = {(n : Int) -> Int in
    if (n == 0) {
        return 0
    } else {
        if (n == 1) {
            return 1
        } else {
            return (fib[n-1]+fib[n-2])
        }
    }
} // end of closure

// ***********************************
// Use closure to print results
// ***********************************
println("Fibonacci sequence up to 1000:")
println("")
j = 0                           // initialize j to 0
while (closure(j) < 1000) {     // Are we done?
    if (j != 0) {               // 0 means first array element, do nothing
        if (j == 1) {           // 1 means second array element
            fib.append(1)       //    append it to fib array
        } else {
            fib.append(fib[j-1] + fib[j-2]) // append remaining elements
        }
    }
println(closure(j))             // always display then
j++                             //   increment j
} // end of while


text:
<repo_name>gehdan/fsdocs-content<file_sep>/Readme.md
# Framework Studio Dokumentation

repo_name: gehdan/fsdocs-content


text:
<repo_name>Damien8x/RSSAppocalypse<file_sep>/app/src/main/java/itc298final/com/rssappocolypse/Sprite.java
package itc298final.com.rssappocolypse;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.graphics.RectF;

public class Sprite {

    private Bitmap sprite;
    private Rect rect;
    private RectF rectf;

    private boolean active = false;

    private float animationSpeed = 0;
    private float x = 0;
    private float y = 0;

    private int animationFrames = 0;
    private int currentFrame = 0;
    private int height = 0;
    private int width = 0;

    public Sprite() { }

    ///////////////////////////////////////////////////////////////////////
    public Sprite( Resources res, int id, int animationFrames, int currentFrame,
                   float animationSpeed, float x, float y, int width, int height ) {
    /*/////////////////////////////////////////////////////////////////////
                                                   Create  and scale sprite
                                              TODO: add angle, acceleration
    /////////////////////////////////////////////////////////////////////*/
        this.animationFrames = animationFrames;
        this.animationSpeed = animationSpeed;
        this.currentFrame = currentFrame;
        this.height = height;
        this.width = width;
        this.x = x;
        this.y = y;

        sprite = BitmapFactory.decodeResource( res, id );
        sprite = Bitmap.createScaledBitmap( sprite, width * animationFrames, height, false );
        rect = new Rect( 0, 0, width, height );
        rectf = new RectF( x, y, x + width, y + height );

    }

    public void setupFont( Resources res, char chr ) {

        active = true;
        animationFrames = 30;
        animationSpeed = 0;
        currentFrame = 0;
        height = 64;
        width = 64;

        sprite = BitmapFactory.decodeResource( res, R.drawable.spr_sp );

        switch ( chr ) {

            case 'a':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_a );
                break;

            case 'b':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_b );
                break;

            case 'c':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_c );
                break;

            case 'd':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_d );
                break;

            case 'e':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_e );
                break;

            case 'f':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_f );
                break;

            case 'g':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_g );
                break;

            case 'h':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_h );
                break;

            case 'i':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_i );
                break;

            case 'j':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_j );
                break;

            case 'k':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_k );
                break;

            case 'l':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_l );
                break;

            case 'm':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_m );
                break;

            case 'n':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_n );
                break;

            case 'o':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_o );
                break;

            case 'p':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_p );
                break;

            case 'q':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_q );
                break;

            case 'r':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_r );
                break;

            case 's':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_s );
                break;

            case 't':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_t );
                break;

            case 'u':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_u );
                break;

            case 'v':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_v );
                break;

            case 'w':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_w );
                break;

            case 'x':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_x );
                break;

            case 'y':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_y );
                break;

            case 'z':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_z );
                break;

            case '!':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_ex );
                break;

            case '.':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_fs );
                break;

            case ',':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_cm );
                break;

            case ':':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_co );
                break;

            case '*':
                sprite = BitmapFactory.decodeResource( res, R.drawable.spr_moon );
                break;

        }

        sprite = Bitmap.createScaledBitmap( sprite, width, height, false );

        rect = new Rect( 0, 0, width, height );
        rectf = new RectF( x, y, x + width, y + height );

    }

    public Bitmap getBitmap() { return sprite; }

    public int getCurrentFrame() { return currentFrame; }

    public Rect getFrame() { return rect; }

    public void setFrame() {

        rect.left = currentFrame*width;
        rect.right = ( currentFrame*width ) + width;

    }

    public RectF getPosition() { return rectf; }

    public void setPosition() {

        rectf.set( (int) x, (int) y, (int) x + width, (int) y + height );

    }

    public float getX() { return x; }

    public void setX(float x) { this.x = x; }

    public float getY() { return y; }

    public void setY(float y) { this.y = y; }

    public void activate() { active = true; }

    public void deactivate() { active = false; }

    public boolean isActive() { return active; }

    ///////////////////////////////////////////////////////////////////////
    public void hasXPositionBeenExceeded( float max, int defaultX, long fps ) {
    /*/////////////////////////////////////////////////////////////////////
                 Check to see if Sprite has exceeded maximum X position and
                                  reset to the default X position if it has
    /////////////////////////////////////////////////////////////////////*/

        x = ( x > max ) ? defaultX : x + ( animationSpeed / fps );

    }

    ///////////////////////////////////////////////////////////////////////
    public void hasYPositionBeenExceeded( float max, int defaultY, long fps ) {
    /*/////////////////////////////////////////////////////////////////////
                 Check to see if Sprite has exceeded maximum X position and
                                  reset to the default X position if it has
    /////////////////////////////////////////////////////////////////////*/

        y = ( y > max ) ? defaultY : y + ( animationSpeed / fps );

    }

    public void increaseFrame() {

        currentFrame++;
        currentFrame = ( currentFrame >= animationFrames ) ? 0 : currentFrame;

    }

    public void resetFrame() { currentFrame = 0; }

}<file_sep>/app/src/main/java/itc298final/com/rssappocolypse/Constants.java
package itc298final.com.rssappocolypse;

public class Constants {

    final public static float DEFAULT_ANIM_SPEED = 255;

    final public static int MAX_LANDSCAPE = 2048;
    final public static int MAX_PORTRAIT = MAX_LANDSCAPE / 2;
    final public static int ALPHA = 224;
    final public static int DEFAULT_FRAME_LENGTH = 100;
    final public static int SUBTRACT_COLOR = 16;
    final public static int DEFAULT_BKG_COLOR = SUBTRACT_COLOR * 15;

    // [ MATH ] /////////////////////////////////
    final public static float PI = 3.1415926535897932384626433832795f;

    // [ RSS ] //////////////////////////////////
    final public static int NUMBER_OF_BUTTONS = 8;

    // [ SPRITES ] //////////////////////////////
    final public static float ASTEROID_ANIM_SPEED = 255;
    final public static float SCROLL_X_DEC = -0.50f;

    final public static int ASTEROID_DEFAULT_X_POSITION = -216;
    final public static int ASTEROID_DEFAULT_Y_POSITION = -256;
    final public static int ASTEROID_FRAMES = 29;
    final public static int ASTEROID_HEIGHT = 92;
    final public static int ASTEROID_WIDTH = 109;
    final public static int ASTEROID2_FRAMES = 5;

    final public static int LOGO1_DEFAULT_HOFFSET = 0x45;
    final public static int LOGO01_FRAMES = 1;
    final public static int LOGO01_HEIGHT = 96;
    final public static int LOGO01_WIDTH = 392;

    final public static int LOGO02_FRAMES = 1;
    final public static int LOGO02_HEIGHT = 96;
    final public static int LOGO02_WIDTH = 700;

    final public static int SCROLL_DELAY = 2;
    final public static int SCROLL_HW = 64;
    final public static int SCROLL_MAX_Y = 456;
    final public static int SCROLL_MIN_Y = 200;
    final public static int SCROLL_INC_DEC = 4;

    final public static int SPRITE01_DEFAULT_X_POSITION = -216;
    final public static int SPRITE01_DEFAULT_Y_POSITION = 0;
    final public static int SPRITE01_FRAMES = 2;
    final public static int SPRITE01_HEIGHT = 212;
    final public static int SPRITE01_WIDTH = 216;

    // [ STRINGS ] //////////////////////////////
    final public static String LANDSCAPE_BLANK = "                               ";
    final public static String PORTRAIT_BLANK = "                     ";
    final public static String TEXT =
            "scrumm master:    * marcus *    " +
            "programming:    * cory * damien *    " +
            "design:    * roman *    " +
            "scrolltext font:    * wildcop *    " +
            "asteroid graphics:    * damon czanik *    " +
            "^                         %";
    final public static String SAVED_RSS = "SAVED_RSS";
    final public static String SAVED_URL = "SAVED_URL";

    // [ URL ] //////////////////////////////////
    final public static String URL0 = "https://www.nasa.gov/rss/dyn/breaking_news.rss"; //breaking news
    final public static String URL1 = "https://www.nasa.gov/rss/dyn/educationnews.rss"; //education
    final public static String URL2 = "https://www.nasa.gov/rss/dyn/lg_image_of_the_day.rss"; //image of the day
    final public static String URL3 = "https://www.nasa.gov/rss/dyn/solar_system.rss"; // solar system and beyond
    final public static String URL4 = "https://www.nasa.gov/rss/dyn/mission_pages/kepler/news/kepler-newsandfeatures-RSS.rss"; //keplar mission
    final public static String URL5 = "https://www.nasa.gov/rss/dyn/chandra_images.rss"; //chandra mission
    final public static String URL6 = "https://www.nasa.gov/rss/dyn/solar_system.rss"; //solar system and beyond
    final public static String URL7 = "https://www.nasa.gov/rss/dyn/ames_news.rss"; //nasa reseach center

}<file_sep>/app/src/main/java/itc298final/com/rssappocolypse/AboutActivity.java
package itc298final.com.rssappocolypse;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class AboutActivity extends Activity {

    LogoSprites logoSprites;

    ///////////////////////////////////////////////////////////////////////
    @Override
    protected void onCreate( Bundle savedInstanceState ) {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        super.onCreate( savedInstanceState );
        logoSprites = new LogoSprites( this );
        setContentView( logoSprites );

    }

    ///////////////////////////////////////////////////////////////////////
    @Override
    public void onPause() {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        super.onPause();
        logoSprites.pause();

    }

    ///////////////////////////////////////////////////////////////////////
    @Override
    public void onResume() {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        super.onResume();

        logoSprites.resume( this );
        Log.d( getResources().getString( R.string.notice ), getResources().getString( R.string.started ));

    }

}<file_sep>/app/src/main/java/itc298final/com/rssappocolypse/RSSActivity.java
package itc298final.com.rssappocolypse;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Shader;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class RSSActivity extends Activity {

    private ImageButton[] buttons = new ImageButton[Constants.NUMBER_OF_BUTTONS];

    ///////////////////////////////////////////////////////////////////////
    @Override
    protected void onCreate( Bundle savedInstanceState ) {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_rss );

        for( int i = 0; i < Constants.NUMBER_OF_BUTTONS; i++ ) {

            buttons[i] = ( ImageButton ) findViewById(
                    getResources().getIdentifier( "button" + i, "id",
                            getPackageName() ));
            buttons[i].setOnClickListener( ButtonClickListener );

        }

    }

    private View.OnClickListener ButtonClickListener = new View.OnClickListener() {
        ///////////////////////////////////////////////////////////////////////
        @Override
        public void onClick( View v ) {
        /*/////////////////////////////////////////////////////////////////////
                                                       Handle button clicks
        /////////////////////////////////////////////////////////////////////*/

            Intent intent = new Intent( RSSActivity.this, RSSListView.class );

            switch ( v.getId() ) {

                case R.id.button0:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL0 );
                    startActivity( intent );
                    break;

                case R.id.button1:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL1 );
                    startActivity( intent );
                    break;

                case R.id.button2:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL2 );
                    startActivity( intent );
                    break;

                case R.id.button3:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL3 );
                    startActivity( intent );
                    break;

                case R.id.button4:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL4 );
                    startActivity( intent );
                    break;

                case R.id.button5:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL5 );
                    startActivity( intent );
                    break;

                case R.id.button6:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL6 );
                    startActivity( intent );
                    break;

                case R.id.button7:

                    intent.putExtra( Constants.SAVED_RSS, Constants.URL7 );
                    startActivity( intent );
                    break;

            }

        }

    };

    ///////////////////////////////////////////////////////////////////////
    @Override
    public boolean onCreateOptionsMenu( Menu menu ) {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        getMenuInflater().inflate( R.menu.rss_menu, menu );
        return true;

    }

    ///////////////////////////////////////////////////////////////////////
    @Override
    public boolean onOptionsItemSelected( MenuItem item ) {
    /*/////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////*/

        switch ( item.getItemId() ) {

            /*case R.id.menu_settings:

                startActivity( new Intent( this, SettingsActivity.class ));
                return true;*/

            case R.id.menu_about:

                startActivity( new Intent( this, AboutActivity.class ));
                return true;

            default:

                return super.onOptionsItemSelected( item );

        }

    }

}

repo_language: Java


text:
<file_sep>funtion main(){

  let events=['click','scroll','blur'];
  console.log(...events);
}
<file_sep>"# UniPlay"

languages: Markdown JavaScript

repo_name: gocommitz/UniPlay


text:
<file_sep># Learning-Python
This is just a beginner learning, don't mind this. It is just so I can access the files at other places.

You don't have to pay any attention to this
<file_sep>def my_function(variable_one, variable2):
    print(variable_one + variable2)

print("I exist: ")
my_function(1, 2)
<file_sep>import gothon.py

print(next_scene_name)

languages: Markdown Python

repo_name: Magical-Man/Learning-Python


text:
<repo_name>davidcoronado/git_test<file_sep>/README.md
This is David Git Project