Skip to content

Instantly share code, notes, and snippets.

View Sadin's full-sized avatar
👽
Go

Zach Snyder Sadin

👽
Go
View GitHub Profile
# Maintainer: David Manouchehri <david@davidmanouchehri.com>
# Contributor: Romanos Skiadas <rom.skiad@gmail.com>
# Contributor: Melik Ludwig Manukyan <melik@archlinux.us>
pkgname=archey
_gitname=$pkgname
_gitbranch=master
_gitauthor=Manouchehri # djmelik
pkgver=r145.bb8d4a3
pkgrel=1
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth
URxvt*background: #161616
URxvt.cursorColor: #FDA53C
!black
*color0: #222222
*color8: #666666
!red
*color1: #E84F4F
*color9: #D23D3D
!green
@Sadin
Sadin / powerball
Last active November 17, 2015 01:42 — forked from Argygle/powerball
public class PowerBall {
public static void main(String[] args) {
// int lottery[];
for ( int i = 10; i>= 1; i-- ) {
System.out.println( i );
}
Write a program to pick PowerBall Lottery numbers. Your program must pick 5 unique random
integer numbers between, and including, 1 to 68. No duplicate numbers, store each number
in the array. As each number is picked, check the array to see if that number has already
been [ocled. If it is found in the array, discard it and pick a new number. Your array will
only have to be five entries in length. Once the array has all 5 entries, print the list of valus.
Traceback (most recent call last):ild.state.change - page: 76/122
File "twif.py", line 375, in <module>
process_week()
File "twif.py", line 343, in process_week
datetime_to, datetime_from)
File "twif.py", line 123, in get_fedora_contributors
datetime_from, datetime_to, TOPICS[topic], full=True)
File "twif.py", line 93, in query_datagrepper
topic, cnt, json_out['pages'])
KeyError: 'pages'
python thisweekinfedora.py
Process week of 2015-03-09 00:00:00
Get activities of week 2015-03-09 00:00:00
org.fedoraproject.prod.fas.user.createetirettesting
Get contributions of week 2015-03-09 00:00:00
org.fedoraproject.prod.wiki.article.edit - page: 8/81/011/1 6/6230
Get activities of week 2015-03-02 00:00:00
org.fedoraproject.prod.fas.user.createetirettesting
@Sadin
Sadin / main.c
Last active August 29, 2015 14:14
#include <stdio.h>
int main()
{
float numbers_geeks_love[3];
numbers_geeks_love[0] = 3.1415;
numbers_geeks_love[1] = 1.6180;
numbers_geeks_love[2] = 1.4142;
Zacharys-MacBook-Pro:~ Sadin$ ssh root@sagesoftwilight.com
root@sagesoftwilight.com's password:
Last failed login: Tue Jan 6 19:59:32 UTC 2015 from 103.41.124.48 on ssh:notty
There were 38108 failed login attempts since the last successful login.
Last login: Tue Jan 6 02:58:51 2015 from 75.97.121.35.res-cmts.brd3.ptd.net
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>SoT</title>
<link rel="stylesheet" href="/static/css/style.css" />
</head>
<body>
<h1> Sages of Twilight</h1>