Skip to content

Instantly share code, notes, and snippets.

View ryankshah's full-sized avatar

Ryan Shah ryankshah

View GitHub Profile
@ryankshah
ryankshah / string_to_bits.c
Created August 8, 2017 03:56
Convert String to Bits in C
char * convertStringToBits(char * string) {
int i;
int stringLength = strlen(string);
int mask = 0x80; /* 10000000 */
char *charArray;
charArray = malloc(8 * stringLength + 1);
if(charArray == NULL) {
printf("An error occured!\n");
return NULL; //error - cant use charArray
}
@ryankshah
ryankshah / password_bcrypt.php
Created August 8, 2017 03:58
BCrypt Hashing And Validation Functions in PHP for Passwords
<?php
/**
* Generate a secure BCrypt hash for a given password.\n
* The cost is passed to the blowfish algorithm provided
* by PHP.
*/
function generateBCryptHash($password, $cost) {
if(defined("CRYPT_BLOWFISH") && CRYPT_BLOWFISH) {
/**
* To generate the salt, we first follow the requirement
This file has been truncated, but you can view the full file.
@relation 'fer2017-weka.filters.supervised.attribute.AttributeSelection-Eweka.attributeSelection.CfsSubsetEval -P 1 -E 1-Sweka.attributeSelection.BestFirst -D 1 -N 5'
@attribute pixel0 numeric
@attribute pixel1 numeric
@attribute pixel2 numeric
@attribute pixel46 numeric
@attribute pixel47 numeric
@attribute pixel48 numeric
@attribute pixel58 numeric
@attribute pixel93 numeric
@attribute pixel95 numeric
package com.ryankshah.skyrimcraft.client.gui;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import org.lwjgl.input.Keyboard;
import java.io.IOException;
#!/usr/bin/python
# -*- coding: utf-8 -*-
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.util import dumpNodeConnections, pmonitor
from mininet.log import setLogLevel
from mininet.node import RemoteController, OVSSwitch
#from mininet.node import OVSController
#!/usr/bin/python
# -*- coding: utf-8 -*-
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.util import dumpNodeConnections, pmonitor
from mininet.log import setLogLevel
from mininet.node import Controller, OVSSwitch
#from mininet.node import OVSController
#!/usr/bin/python
# -*- coding: utf-8 -*-
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.util import dumpNodeConnections, pmonitor
from mininet.log import setLogLevel
from mininet.node import Controller, OVSSwitch
#from mininet.node import OVSController
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.util import dumpNodeConnections, pmonitor
from mininet.log import setLogLevel
from mininet.node import Controller, OVSSwitch
#from mininet.node import OVSController
from signal import SIGINT
import math
import random
We can't make this file beautiful and searchable because it's too large.
policy,level,value
blp,10,405
blp,10,556
blp,10,512
blp,10,642
blp,10,447
blp,10,642
blp,10,168
blp,10,164
blp,10,170
We can't make this file beautiful and searchable because it's too large.
policy,level,value
blp,10,405
blp,10,556
blp,10,512
blp,10,642
blp,10,447
blp,10,642
blp,10,168
blp,10,164
blp,10,170