Skip to content

Instantly share code, notes, and snippets.

View therealbluepandabear's full-sized avatar

therealbluepandabear therealbluepandabear

  • 03:29 (UTC +12:00)
View GitHub Profile
@CyberShadow
CyberShadow / favicon_ua.d
Last active November 14, 2022 02:14
favicon_ua
// ProxyPassMatch "^/(favicon\.ico)$" http://127.2.146.142:14471/$REAL_UPSTREAM/$1 nocanon
import std.algorithm.searching;
import std.stdio : stderr;
import std.string : split, join;
import ae.net.asockets;
import ae.net.http.client;
import ae.net.http.responseex;
import ae.net.http.server;
@codinginflow
codinginflow / Note.java
Created July 28, 2021 20:24
Architecture Components Beginner Tutorial Part 4
package com.codinginflow.architectureexample;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
@Entity(tableName = "note_table")
public class Note {
@PrimaryKey(autoGenerate = true)
private int id;
@saideepd
saideepd / mpellipse.c
Created January 13, 2018 17:14
Midpoint Ellipse Algorithm
/*
Title: Midpoint Ellipse Algorithm
Description: C Program to draw an Ellipse using Midpoint Ellipse Algorithm
Author: Saideep Dicholkar
*/
#include<stdio.h>
#include<graphics.h>
void main()
{
@derick-montague
derick-montague / sync-github-to-bitbucket.md
Last active March 11, 2024 09:36
Sync github repo to bitbucket repo

Set up remotes

setup local repo

mkdir myrepository
cd myrepository
git init

add bitbucket remote as "origin"

@hendrawd
hendrawd / ProxiedHurlStack.java
Last active October 3, 2023 09:52
Use proxy with Volley
import com.android.volley.toolbox.HurlStack;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
/**
* @author hendrawd on 6/29/16
@royclarkson
royclarkson / stop-emulators.sh
Created May 1, 2014 16:14
Bash script to kill all running Android emulators
#!/bin/bash
for ((PORT=5554; PORT<=5584; PORT+=2)); do
echo killing emulator-$PORT...
adb -s emulator-$PORT emu kill
done