This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.io.UnsupportedEncodingException; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
public class HMAC { | |
public static void main(String[] args) throws Exception { | |
System.out.println(hmacDigest("The quick brown fox jumps over the lazy dog", "key", "HmacSHA1")); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
/** | |
* Returns true iff the number passed in is even | |
* @param {Number} x | |
* @return {Boolean} | |
*/ | |
function isEven(x) { | |
return x % 2 == 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Chocolat [43902] | |
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat | |
Identifier: com.chocolatapp.Chocolat | |
Version: 1.4.3 (1.4.3) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [156] | |
User ID: 501 | |
Date/Time: 2012-11-27 16:57:10.279 +0000 | |
OS Version: Mac OS X 10.8.2 (12C60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Chocolat [35748] | |
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat | |
Identifier: com.chocolatapp.Chocolat | |
Version: 1.3.2 (1.3.2) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [235] | |
User ID: 501 | |
Date/Time: 2012-10-09 16:43:01.771 +0100 | |
OS Version: Mac OS X 10.8.2 (12C54) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%body | |
%table | |
%tr | |
%th Name | |
%th Costumer | |
- @galleries.each do |gallery| | |
%tr | |
%td= link_to gallery.name, gallery_path(gallery.id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ Copied this: | |
- unless @orders_new.empty? | |
%li | |
= form_tag('/management/orders/batch/') do | |
= hidden_field_tag "do", "print" | |
%table | |
%tr | |
%th | |
%input#selectall{:type => "checkbox"} |