Skip to content

Instantly share code, notes, and snippets.

View NonymousMorlock's full-sized avatar
🏠
Working from home

NonymousMorlock

🏠
Working from home
View GitHub Profile
using System;
using System.Threading;
class Program
{
static int data = 0;
static ReaderWriterLock rwlock = new ReaderWriterLock();
static void Main(string[] args)
#include <semaphore.h>
#include <pthread.h>
#include <stdio.h>
sem_t mutex;
sem_t db;
int readcount;
void *reader(void *arg)
{
#include <iostream>
#include <iomanip>
using namespace std;
int question1()
{
#include <iostream>
#include <iomanip>
using namespace std;
int power(int x, int y)
{
int total = 1;
for (int i = 1; i <= y; i++)
{
total *= x;
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double amount = 100000;
double interest = 0.08;
double total = 0;
@NonymousMorlock
NonymousMorlock / lintool.sh
Created November 17, 2022 10:30 — forked from akyunus/lintool.sh
lintool is a bash script for flutter projects to automate checks before creating a Pull Request
#!/bin/bash
#minimum code coverage value
coverage_limit=70
exit_message () {
echo "\e[1;31m 😅 Lintool failed.\n 🪛 Check the issues.\n 🐝 Run again.\e[0m"
exit 0
}

Animated SVG Avatar

Created a login form with an SVG avatar that responds to the input in the email field. Used the GSAP TweenMax library + GSAP's MorphSVG plugin for the animating.

Email validation is very simple and crude just for the purposes of getting this prototype working.

A Pen by Darin on CodePen.

License.

import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart';
// sample code
/*
class CornerDecorationTest extends StatefulWidget {
@override
_CornerDecorationTestState createState() => _CornerDecorationTestState();
}