Skip to content

Instantly share code, notes, and snippets.

View imcvampire's full-sized avatar
🎯
Focusing

Quoc-Anh Nguyen imcvampire

🎯
Focusing
View GitHub Profile
@imcvampire
imcvampire / index.html
Created October 25, 2016 16:44
Vue2 page transitions with GSAP
<!-- App -->
<div id="app">
<component :is="state.view">
<h1>{{ state.view }}</h1>
<p>
See <a href="http://timrijkse.nl" target="_blank">timrijkse.nl</a> for more articles.<br>
Follow me on <a href="http://twitter.com/timrijkse" target="_blank">twitter</a>
</p>
</component>
## Java:
```
private string foo;
public string getFoo() {
return this.foo;
}
private v setFoo(foo) {
this.foo = foo
(defun fib (n)
(labels ((calc-fib (n a b)
(if (= n 0)
a
(calc-fib (- n 1) b (+ a b)))))
(calc-fib n 0 1)))
#! /bin/python
def fibonacci(n, f_1=0, f_2=1):
return fibonacci(n - 1, f_2, f_1 + f_2) if n > 1 else f_1
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
printf("Need 1 param");
return 1;
import threading
COUNT = 1000000
NUM_THREAD = 8
THREAD_RANGE = 125000
def print_num(start, end):
for i in range(start, end):
print(i)