Skip to content

Instantly share code, notes, and snippets.

View Alfian878787's full-sized avatar
πŸ’­
Hohoho

Alfian878787 Alfian878787

πŸ’­
Hohoho
View GitHub Profile
import UIKit
// 1. Write a function that takes no arguments and returns a view that is the size of the screen and is colored red. The function should return an AnyObject instead of a UIView, since a UIView cannot pass the C/C++ boundary.
func gimmeUIView() -> AnyObject {
let newView = UIView(frame: UIScreen.mainScreen().bounds)
newView.backgroundColor = .redColor()
return newView
@Alfian878787
Alfian878787 / docker-compose.yml
Created April 2, 2020 12:14 — forked from wcaquino/docker-compose.yml
CΓ³digo completo para definiΓ§Γ£o dos prΓ©-requisitos de ambiente para o curso de integraΓ§Γ£o contΓ­nua com testes
version: "3"
services:
pg-tasks:
container_name: pg-tasks
image: postgres:9.6
ports:
- 5433:5432
environment:
- POSTGRES_DB=tasks
- POSTGRES_PASSWORD=password
@Alfian878787
Alfian878787 / openpanzer-save.json
Created April 2, 2020 12:12
Kiev encirclement - Konotop-11
{"scenario":{"name":"Kiev encirclement - Konotop","maxTurns":34,"date":"1941-09-08T22:00:00.000Z","atmosferic":0,"latitude":3,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{"2":[],"3":[],"4":[],"5":[],"6":[],"7":[],"8":[]},"map":{"rows":39,"cols":43,"isLastRowPartial":true,"isLastColPartial":false,"map":[[{},{"unit":null,"airunit":null,"terrain":0,"road":17,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment"
@Alfian878787
Alfian878787 / gist:fd0efa63af8075b8a3ef9f1a341de05c
Created March 27, 2020 15:16 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<atom:link href="https://feeds.simplecast.com/dMSdNzO2" rel="self" title="MP3 Audio" type="application/atom+xml"/>
<atom:link href="https://pubsubhubbub.appspot.com/" rel="hub" xmlns="http://www.w3.org/2005/Atom"/>
<generator>https://simplecast.com</generator>
<title>Your Transformation Station</title>
<description>Your host Greg F., go on a journey with you, rediscovering your true identity and purpose on this planet.
Together, we can transform our community one topic at a time.
/**
*
* @param email
* @param recoveryCode
* @param newPassword
* @param passwordConfirm
* @throws ResetPasswordException
*/
public void resetPassword(String email, String recoveryCode, String newPassword,
String passwordConfirm) throws ResetPasswordException {
@Alfian878787
Alfian878787 / rsa.sh
Created March 17, 2020 17:41 — forked from donrestarone/github-rsa-keygen.sh
a simple script for generating rsa keypair for github on your raspberry pi
ssh-keygen -t rsa -b 4096 -C "yourGithubEmailHere"
# hit enter when it asks where to save. This will save it to the default location which is /home/pi/.ssh
cat /home/pi/.ssh/id_rsa.pub
#copy the output of the above and paste it to Github's SSH keys section of your account
class Decipherer {
public static void main(String[] args) {
String[] messages = {
"0@sn9sirppa@#?ia'jgtvryko1",
"q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj",
"aopi?sedohtΓ©m@#?sedhtmg+p9l!",
};