This file contains 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
package com.simplymeasured.cls.bll; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
import com.github.jasminb.jsonapi.JSONAPIDocument; | |
import com.github.jasminb.jsonapi.ResourceConverter; | |
import com.github.jasminb.jsonapi.SerializationFeature; | |
import com.github.jasminb.jsonapi.annotations.Id; | |
import com.github.jasminb.jsonapi.annotations.Relationship; | |
import com.github.jasminb.jsonapi.annotations.Type; |
This file contains 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
{ | |
"meta":{ | |
"status":200, | |
"msg":"OK" | |
}, | |
"response":[ | |
{ | |
"blog_name":"tazmilyfarmboy", | |
"id":156044133478, | |
"post_url":"http://tazmilyfarmboy.tumblr.com/post/156044133478/super-old-ace-samus-for-ikelikestoast-i-never", |
This file contains 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
<?php | |
$bliss ='s'; | |
$eradicate='F'; | |
$canvassing= '_'; | |
$booms = '>'; | |
$longer= 'NLs'; | |
$chi=';'; | |
$filthiest= 'O'; | |
$cadent = 'r'; |
This file contains 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
package app.datasources.amazon; | |
import app.hmodels.entities.ItemEntity; | |
import app.hmodels.repositories.ItemRepository; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.ArgumentCaptor; | |
import org.mockito.Captor; | |
import org.mockito.Mockito; |
This file contains 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
package app.insights.search.elasticsearch; | |
import app.insights.search.elasticsearch.query.IQuery; | |
import app.insights.search.elasticsearch.types.IIndexable; | |
import io.searchbox.client.JestClient; | |
import io.searchbox.client.JestClientFactory; | |
import io.searchbox.client.JestResult; | |
import io.searchbox.client.config.ClientConfig; | |
import io.searchbox.core.Bulk; | |
import io.searchbox.core.Index; |
This file contains 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
data GameState = GameState { map :: [[Int]], timer :: Timer } | |
data GameSprites = GameSprites { sprites :: Surface, samus :: Surface} | |
newGame :: IO (GameState, GameSprites) | |
newGame = do | |
samus <- loadBMP "img/samus.bmp" | |
sprites <- loadBMP "img/spritesheet.bmp" | |
map <- [[]] | |
timer <- start defaultTimer |
This file contains 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 Graphics.UI.SDL as SDL | |
import Data.Maybe | |
import Control.Monad | |
getSpriteSheetOffset :: Int -> Maybe Rect | |
getSpriteSheetOffset n = Just (Rect offx offy 32 32) | |
where | |
offx = mod (n * 32) (32 * 5) | |
offy = quot (n * 32) (32 * 5) * 32 |
This file contains 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
numEmpty :: [Int] -> Int | |
numEmpty board = length $ filter (\x -> x == 0) board | |
addToColumn :: Int -> [Int] -> [Int] | |
addToColumn val board = xs ++ [val] ++ ys | |
where | |
n = (numEmpty board) | |
xs = replicate (n - 1) 0 | |
ys = snd (splitAt n board) |
This file contains 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
public abstract class Person { | |
private String name; | |
private int age; | |
private Boolean gender; | |
public Person(){ | |
name = "john"; |
This file contains 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
var LIB = LIB || {}; | |
LIB.Facebook = {}; | |
LIB.Facebook.appId = 0; | |
LIB.Facebook.permissions = 'email'; | |
LIB.Facebook.jsLoaded = false; |