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
    
  
  
    
  | #include <iostream> | |
| #include <windows.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| SYSTEM_POWER_STATUS powerStatus; | |
| int percent = 0; | |
| if (GetSystemPowerStatus(&powerStatus) == TRUE) { | |
| percent = (int)powerStatus.BatteryLifePercent; | 
  
    
      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
    
  
  
    
  | <?xml version="1.0"?> | |
| <settings> | |
| <console> | |
| <colors> | |
| <color id="0" r="40" g="42" b="32"/> | |
| <color id="1" r="165" g="66" b="66"/> | |
| <color id="2" r="140" g="148" b="64"/> | |
| <color id="3" r="222" g="147" b="95"/> | |
| <color id="4" r="95" g="129" b="157"/> | |
| <color id="5" r="133" g="103" b="143"/> | 
  
    
      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
    
  
  
    
  | BackgroundColour=29,31,33 | |
| ForegroundColour=197,200,198 | |
| BoldBlack=40,42,46 | |
| Black=55,59,65 | |
| BoldRed=165,66,66 | |
| Red=204,102,102 | |
| BoldGreen=140,148,64 | |
| Green=181,189,104 | |
| BoldYellow=222,147,95 | |
| Yellow=240,198,116 | 
  
    
      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
    
  
  
    
  | tell application "Finder" | |
| set myWin to window 1 | |
| set theWin to (quoted form of POSIX path of (target of myWin as alias)) | |
| tell application "Terminal" | |
| activate | |
| tell window 1 | |
| do script "/bin/sh -c 'cd " & theWin & "; npm list grunt | grep empty >/dev/null 2>&1 && npm install; grunt'" | |
| end tell | |
| end tell | |
| end tell | 
  
    
      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
    
  
  
    
  | #!fish | |
| if not type npm >/dev/null 2>&1 | |
| exit | |
| end | |
| set -l cmds \ | |
| add-user adduser apihelp author bin bugs c cache completion config ddp \ | |
| dedupe deprecate docs edit explore faq find find-dupes get help help-search \ | |
| home i info init install isntall issues la link list ll ln login ls outdated \ | 
  
    
      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
    
  
  
    
  | #!fish | |
| if not type composer >/dev/null 2>&1 | |
| exit | |
| end | |
| composer --no-ansi | sed "1,/Available commands/d" | while read line | |
| echo $line | sed "s/\s+//" | read cmd desc | |
| complete -f -c composer -n '__fish_composer_using_command' -a "$cmd" -d "$desc" | |
| end | 
  
    
      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
    
  
  
    
  | git clone https://github.com/Version2beta/vagrant-chef-wordpress | |
| cd vagrant-chef-wordpress | |
| vagrant up | |
| # http://localhost:8000 にアクセス | 
  
    
      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
    
  
  
    
  | $tmp: ""; | |
| .sample1:after{ | |
| $tmp: sprintf("%02d,%02d", 1, 2); | |
| content: "#{$tmp}"; | |
| } | |
| // 結果:content: "01,02"; | |
| $tmp: ""; | |
| .sample1:after{ | |
| $tmp: sprintf("%.5s", foobar); | 
  
    
      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
    
  
  
    
  | $tmp: ""; | |
| .sample:after { | |
| $tmp: str-replace("/_./", "|x|x.upcase.sub!('_', '')", "test_hoge"); | |
| content: "#{$tmp}"; | |
| } | |
| // 結果:content: "testHoge"; | |
| $tmp: ""; | |
| .sample2:after{ | |
| $tmp: str-replace("_", "", "test_hoge"); | 
  
    
      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
    
  
  
    
  | tell application "Finder" | |
| set myWin to window 1 | |
| set theWin to (quoted form of POSIX path of (target of myWin as alias)) | |
| tell application "Terminal" | |
| activate | |
| tell window 1 | |
| do script "cd " & theWin & ";grunt" | |
| end tell | |
| end tell | |
| end tell |