Skip to content

Instantly share code, notes, and snippets.

View 32teeth's full-sized avatar
:octocat:
Get it done. Right.

Eugene Andruszczenko 32teeth

:octocat:
Get it done. Right.
View GitHub Profile
@32teeth
32teeth / appDelegate.h
Created February 20, 2016 14:01
switch between view controllers without segues
/*
** in your header, define a reference
*/
- (void)switchViewController:(UIViewController*)view :(NSString*)segue;
var color_utils = (function(){
function getLong(color)
{
return color[0] << 16 | color[1] << 8 | color[2];
}
function getRGB(color)
{
if(color.indexOf("#") == -1)
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Colorsublime - Themes/dimmed.tmTheme",
"theme": "Material-Theme-Lighter.sublime-theme",
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
@32teeth
32teeth / Utf8ArrayToStr
Created January 19, 2017 18:34
Utf8ArrayToStr
function Utf8ArrayToStr(array) {
var out, i, len, c;
var char2, char3;
out = "";
len = array.length;
i = 0;
while(i < len) {
c = array[i++];
switch(c >> 4)
#!/bin/zsh
export NC='\e[0m' # No Color
export WHITE='\e[1;37m'
export BLUE='\e[1;34m'
export GREEN='\e[0;32m'
export YELLOW='\e[1;33m'
export TODAY=`date +%A\ %B\ %Y\ %T`
export NOTIFIER=0
@32teeth
32teeth / Create a GitHub repo from command line
Last active October 6, 2017 20:27
Create a GitHub repo from command line
#!/bin/zsh
export NC='\e[0m' # No Color
export WHITE='\e[1;37m'
export BLUE='\e[1;34m'
export GREEN='\e[0;32m'
export YELLOW='\e[1;33m'
export TODAY=`date +%A\ %B\ %Y\ %T`
export NOTIFIER=0

Some Title

Some Description Some text

Click Me To Expand

#!/bin/zsh
```
struct dirent
```
```
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
@32teeth
32teeth / CRC.h
Created February 4, 2020 17:23
CRC
#include <rom/crc.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include "gui.h"
#include "odroid_display.h"