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
#include <stdlib.h> | |
#include <stdio.h> | |
int * score( int[], int[] ); | |
int main( void ){ | |
int result[2]; | |
int codeword[4] = {2,2,2,3}; | |
int testword[4] = {3,3,1,2}; |
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 | |
// download all flickr images from a given userid | |
// userid is embedded in this url | |
$key = "enterkeyhere"; | |
$url = "https://api.flickr.com/services/rest/?method=flickr.people.getPhotos&api_key=".$key."&user_id=120759744%40N07&per_page=80&page="; | |
$append = "&format=json&nojsoncallback=1"; | |
for($i=1; $i<4; $i++){ // 3 pages of 80 images | |
$uri = $url.$i.$append; |
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
# convert images from source to create buffer frames for blending | |
convert -verbose flickrcam/*jpg -delay 10 -morph 10 flickranim/%05d.morph.jpg | |
# run through ffmpeg to combine/transcode to mp4 | |
ffmpeg -r 25 -i flickranim/%05d.morph.jpg flickranim/output.mp4 |
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
note() { /usr/bin/vim /Users/christo/Documents/notes/"$@".txt ; } |
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
private class QueryTask extends AsyncTask<String, Void, String> { | |
String role = new String(); | |
@Override | |
protected String doInBackground(String... querySections) { | |
/* querySections: requestURL, requestQuery, role (index/data) */ | |
String data = "", requestQuery = new String(); | |
role = querySections[2]; | |
try { | |
requestQuery = URLEncoder.encode(querySections[1], "UTF-8"); |