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
List<Event> events = [ | |
select | |
id, | |
subject, | |
startdatetime, | |
isdeleted | |
from | |
Event | |
order by | |
createddate desc |
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
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
d1 = datetime.now() |
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
#!/bin/bash | |
if [ -e Brewfile ]; then | |
echo "Brewfile already exists. Please rename or remove it." | |
exit | |
fi | |
for i in $(brew list) | |
do | |
echo "install $i" |
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
Integer count = 0; | |
while (true) { | |
try { | |
Messaging.reserveSingleEmailCapacity(1); | |
count++; | |
} catch (Exception e) { | |
System.debug(LoggingLevel.INFO, 'メール送信可能回数はあと ' + count + ' 回'); | |
break; | |
} | |
} |
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
" taglist {{{ | |
NeoBundle 'vim-scripts/taglist.vim' | |
set tags=tags | |
let Tlist_Ctags_Cmd = "/usr/local/bin/ctags" | |
let Tlist_Show_One_File = 1 | |
let Tlist_Use_Right_Window = 1 | |
let Tlist_Exit_OnlyWindow = 1 | |
" http://yuku-tech.hatenablog.com/entry/20111012/1318416494 | |
let g:tlist_javascript_settings = 'javascript;c:class;m:method;F:function;p:property' |
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
# -*- coding: utf-8 -*- | |
from google.appengine.ext import ndb | |
from oauth2client.appengine import CredentialsNDBProperty | |
class CredentialsModel(ndb.Model): | |
credentials = CredentialsNDBProperty() |
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
// Enum | |
var Status = { | |
FINISHED: '完了', | |
PROCESSING: '対応中', | |
PENDING: '保留', | |
CANCELED: '対応しない' | |
}; | |
var Color = { | |
FINISHED: '#ead1dc', |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<ul> | |
{% for task in tasks %} | |
<li> | |
{{ task.title }} | |
</li> | |
{% endfor %} | |
</body> |
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
@isTest | |
public class CreatedDateTest { | |
public static testMethod void run() { | |
Account a = new Account(); | |
a.Name = 'Account # 1'; | |
insert a; | |
System.debug(LoggingLevel.INFO, 'A\'s id: ' + a.id); | |
Account b = new Account(); |
OlderNewer