Giter Club home page Giter Club logo

jokecamp.com's Introduction

Joe Kampschmidt's (Joe's Code) Personal Website/Blog

Source code for https://www.jokecamp.com

The website is a static site built with Poole and Jekyll.

To test change to the project directory and run the following command

jekyll serve --watch

Then browse to http://localhost:4000/

Pull requests will be accepted for any typos or editing and your contribution will be credited.

Asset Pipeline

https://github.com/matthodan/jekyll-asset-pipeline/blob/master/README.md

  • gem install jekyll-asset-pipeline
  • gem install yui-compressor

Script to Compress static content

See https://members.nearlyfreespeech.net/wiki/HowTo/GzipStatic

Run on unix web server

#!/usr/local/bin/perl

# This script should be uploaded to the web server.

use warnings;
use strict;
use File::Find;
find (\&wanted, ("."));
sub wanted
{
 if (/(.*\.(?:html|htm|css|js)$)/i) {
     print "Compressing $File::Find::name\n";
     system ("gzip --keep --best --force $_");
 }
}

To Deploy

jekyll serve
git commit -m "
git push origin master
./deploy.sh

jokecamp.com's People

Contributors

aqsmith08 avatar biswapanda avatar broglodyte avatar caiken22 avatar czechjiri avatar elenasport avatar frenchtoast0 avatar gavinr avatar ionutdb avatar jokecamp avatar kozakevych avatar mooosh avatar ronnievisser avatar shouze avatar sportdeer avatar stevennyman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jokecamp.com's Issues

doesn't work

Hello,
I try your method to create some custom directives with custom validators and it simple doesn't work.

Add goalserve.com to the list

You can also check goalserve.com, I use theire service for more than 5
years. The provide many sport feeds as XML Files. The website doesn't
looks good but the service is stable and fast, not very fast, but fast
enough.

shell code is wrong

I did try on macOS:

MESSAGE="Message"
SECRET="secret"

echo -n $MESSAGE | openssl dgst -sha256 -hmac $SECRET -binary | base64

and even:
echo -n $MESSAGE | openssl sha256 -hmac $SECRET -binary | base64

I got:
a74X0vtyUNoaQ246L1U+xD0Q6gHlJVyCKa7OacllXeE=

and not:
qnR8UCqJggD55PohusaBNviGoOJ67HC6Btry4qXLVZc

as previous examples

Access to the Opta Playground XML data?

Hi Joe,

In this blog post, you mention --

"I applied and they sent me the xml data set for 10 rounds of games from the start of the 2007/2008 Bundesliga 2. The more detailed game data had either x,y coordinates of game events. A very impressive dataset but it felt more like an advertisement. The data provided I had no interest in and I'm not sure why an indie developer would spend time working on a data set they could never afford."

I'm curious if you've uploaded the data to Github (or somewhere else)? Is there a way for me to access it?

Thanks,
Aaron

HMAC SHA256 | issue in Java example

2d9f073

Curernt example:

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

public class ApiSecurityExample {
  public static void main(String[] args) {
    try {
     String secret = "secret";
     String message = "Message";

     Mac sha256_HMAC = Mac.getInstance("HmacSHA256");
     SecretKeySpec secret_key = new SecretKeySpec(secret.getBytes(), "HmacSHA256");
     sha256_HMAC.init(secret_key);

     String hash = Base64.encodeBase64String(sha256_HMAC.doFinal(message.getBytes()));
     System.out.println(hash);
    }
    catch (Exception e){
     System.out.println("Error");
    }
   }
}

Correction in Example:

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

public class ApiSecurityExample {
  public static void main(String[] args) {
    try {
     String secret = "secret";
     String message = "Message";

     Mac sha256_HMAC = Mac.getInstance("HmacSHA256");
     SecretKeySpec secret_key = new SecretKeySpec(**Base64.decode**(secret.getBytes()), "HmacSHA256");
     sha256_HMAC.init(secret_key);

     String hash = Base64.encodeBase64String(sha256_HMAC.doFinal(message.getBytes()));
     System.out.println(hash);
    }
    catch (Exception e){
     System.out.println("Error");
    }
   }
}

Note: Please correct it in the documentation.

hmac256 issue in c#

Thanks for compiling the list - it's very helpful. The c# code works, but it won't work more broadly in that you've used an encoding that is different than most of the other examples. In particular, you're using System.Text.ASCIIEncoding() and you should be using System.Text.UTF8Encoding(). The results are identical with the simple test, but will fail with extended Unicode characters.

string CreateToken( string message, string secret )
{
   var encoding = new System.Text.UTF8Encoding( );
   var keyBytes = encoding.GetBytes( secret );
   var messageBytes = encoding.GetBytes( Message );
   using ( var hmacsha256 = new HMACSHA256( keyBytes ) )
   {
     var hashmessage = hmacsha256.ComputeHash( messageBytes );
     return Convert.ToBase64String( hashmessage );
   }
}

How to pass number to crypto-js hmac sha1 method?

I have different results in java and js code when using HmacSha1 method. in java code, my message type is long and message type in js code is string. I think that problem is the different types for message. so how to solve this? this is my code :

import Crypto from "crypto-js";

 Crypto.HmacSHA1(
   "26056085",
   Crypto.enc.Hex.parse("0899917B8146FFE4")
 );

so, how to send "26056085" as a number message?

in js my result is : E79B8A3926C18E7459AD029EF7F9424A42BBDBB2
and in java is :ae88dd66cd58b91ade558629793c1f3346387b79

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.