Skip to content

Instantly share code, notes, and snippets.

View Zircoz's full-sized avatar
💻
Hitting random keys!

Zircoz Zircoz

💻
Hitting random keys!
View GitHub Profile
@Zircoz
Zircoz / logo.svg
Last active June 3, 2021 04:51
logop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
year population
2006 40
2008 45
2010 48
2012 51
2014 53
2016 57
2017 62
@Zircoz
Zircoz / FibPrime.py
Created December 17, 2020 19:04
Alternate Series of Fibonacci & Prime Numbers
'''
Series of Fibonacci and Prime numbers arranged alternatively
Fibo: 1,1,2,3,5...
Prime: 2,3,5,7,5...
Merged Series: 1, 2, 1, 3, 2, 5, 3, 7, 5, 11, 8, 13, 13, 17.........
'''
import math
def next_Fib(last, secLast):
return last+secLast
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int isPrime(int n) {
if(n<=1) {
return 0;
}
@Zircoz
Zircoz / blinkingLED.asm
Created October 12, 2019 19:43 — forked from elktros/blinkingLED.asm
8051 Microcontroller Assembly Language Program for Blinking LEDs
ORG 00H ; Assembly Starts from 0000H.
; Main Program
START: MOV P1, #0XFF ; Move 11111111 to PORT1.
CALL WAIT ; Call WAIT
MOV A, P1 ; Move P1 value to ACC
CPL A ; Complement ACC
MOV P1, A ; Move ACC value to P1
CALL WAIT ; Call WAIT
SJMP START ; Jump to START
WAIT: MOV R2, #10 ; Load Register R2 with 10 (0x0A)
@Zircoz
Zircoz / 30daysofreading.markdown
Created February 11, 2019 22:48
30daysofreading
@Zircoz
Zircoz / clouds-using-css-3d-transforms.markdown
Created January 16, 2019 20:09
Clouds using CSS 3D Transforms

Clouds using CSS 3D Transforms

How to use CSS 3D Transforms to create sprite-based 3D-like clouds. Demo: http://www.clicktorelease.com/code/css3dclouds/

There are several div elements, distributed randomly with transform: translate3d() inside a world div that is rotated with transform: rotate3d() using JavaScript in the onmousemove handler.

Each cluster contains several div elements with a cloud texture that are distributed in 3d with transform: translate3d() rotateZ() scale().

Every frame each layer is updated to face the camera, by rotating the sprite in X and Y the inverse amount of the rotation of the world.

Verifying my Blockstack ID is secured with the address 17a5T5e21EyFYG2RB2w6vJpnPtLayhabZZ https://explorer.blockstack.org/address/17a5T5e21EyFYG2RB2w6vJpnPtLayhabZZ