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
--- old/DocumentParser.php Wed Dec 18 14:16:57 2013 | |
+++ new/DocumentParser.php Wed Dec 18 14:18:43 2013 | |
@@ -143,7 +143,7 @@ | |
$ids = array(); | |
foreach($glossary as $id => $item) { | |
- if(strpos(strtolower($string), strtolower($item)) !== false) { | |
+ if(mb_strpos(mb_strtolower($string), mb_strtolower($item)) !== false) { | |
$ids[] = $id; | |
} |
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
'use strict'; | |
var doc = require('dynamodb-doc'); | |
var dynamodb = new doc.DynamoDB(); | |
console.log('Loading function'); | |
exports.handler = (event, context, callback) => { | |
event.Records.forEach((record) => { | |
// Kinesis data is base64 encoded so decode here | |
const payload = new Buffer(record.kinesis.data, 'base64').toString('ascii'); | |
const json = JSON.parse(payload); |
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
function onMessageArrived(message) { | |
var j = JSON.parse(message.payloadString); | |
var data = undefined; | |
var datas = j.datas; | |
for (var i=0;i<datas.length;i++) { | |
switch (datas[i].name) { | |
case "watt": | |
data = datas[i]; | |
break; | |
case "temperature": |
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
'use strict'; | |
console.log('Loading function'); | |
let doc = require('dynamodb-doc'); | |
let dynamo = new doc.DynamoDB(); | |
function date_desc(a, b) { | |
let aa = new Date(a.date); | |
let bb = new Date(b.date); | |
if (aa < bb) return -1; |
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
// Path pattern: /issues/ | |
// Type : JavaScript | |
$(function() { | |
var ec_observer = new MutationObserver(function() {enhance_checkbox()}); | |
var ec_target = document.getElementById('all_attributes'); | |
ec_observer.observe(ec_target, { attributes: false, childList: true, characterData: false }); | |
function enhance_checkbox() { | |
$('.check_box_group') | |
.each(function() { |
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
set nocompatible | |
filetype off | |
"----------------------------- | |
" Vundle | |
"----------------------------- | |
if has('vim_starting') | |
set nocompatible | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif |
OlderNewer