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 "ViewController.h" | |
@interface ViewController () | |
@property (weak, nonatomic) IBOutlet UIImageView *image; | |
- (IBAction)panning:(UIPanGestureRecognizer *)sender; | |
@end | |
@implementation ViewController | |
- (IBAction)panning:(UIPanGestureRecognizer *)sender { | |
if (sender.state == UIGestureRecognizerStateBegan){ |
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
console.log('called another.js'); | |
console.log(require.main.exports.config('APP_PORT')); |
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 | |
App::uses('AppController', 'Controller'); | |
class SessionsController extends AppController { | |
var $uses = array('User'); | |
public function update($redirectTo = null) { | |
$newUser = $this->User->read(null, $this->Auth->user('id')); | |
$newUser = $newUser['User']; | |
unset($newUser['password']); |
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 prefectures = { | |
"北海道地方": {"hokkaido" : "北海道"}, | |
"東北地方" : {"aomori" : "青森県", "iwate" : "岩手県", "miyagi" : "宮城県", "akita" : "秋田県", "yamagata" : "山形県", "fukushima": "福島県"}, | |
"関東地方" : {"ibaraki" : "茨城県", "tochigi": "栃木県", "gunma" : "群馬県", "saitama" : "埼玉県", "chiba" : "千葉県", "tokyo" : "東京都", "kanagawa" : "神奈川県"}, | |
"中部地方" : {"niigata" : "新潟県", "toyama" : "富山県", "ishikawa": "石川県", "fukui" : "福井県", "yamanashi": "山梨県", "nagano" : "長野県", "gifu" : "岐阜県", "shizuoka": "静岡県", "aichi": "愛知県"}, | |
"近畿地方" : {"mie" : "三重県", "shiga" : "滋賀県", "kyoto" : "京都府", "osaka" : "大阪府", "hyogo" : "兵庫県", "nara" : "奈良県", "wakayama" : "和歌山県"}, | |
"中国地方" : {"tottori" : "鳥取県", "shimane": "島根県", "okayama" : "岡山県", "hiroshima": "広島県", "yamaguchi": "山口県"}, | |
"四国地方" : {"tokushima": "徳島県", "kagawa" : "香川県", "ehime" : "愛媛県", "kochi" : "高知県"}, | |
"九州地方" : {"fukuoka" : "福岡県", "saga" : "佐賀県", "nagasaki": "長崎県", "kumamoto" : "熊本県", "oita" : "大分県", "miyazaki" : "宮崎県", "k |
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
/** | |
* MazeSolve - Package: net.syamn.mazesolve | |
* Created: 2013/02/07 6:29:35 | |
*/ | |
package net.syamn.mazesolve; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; |
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
/** | |
* MazeSolve - Package: net.syamn.mazesolve | |
* Created: 2013/02/07 1:08:45 | |
*/ | |
package net.syamn.mazesolve; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import java.util.Scanner; |
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 yourdomain.yourpackage; | |
import org.bukkit.Bukkit; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import com.mcbans.firestar.mcbans.MCBans; | |
import com.mcbans.firestar.mcbans.api.MCBansAPI; | |
import com.mcbans.firestar.mcbans.api.data.PlayerLookupData; | |
import com.mcbans.firestar.mcbans.callBacks.LookupCallback; |
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 me.pogo4545; | |
import java.util.logging.Logger; | |
import org.bukkit.Bukkit; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.EventPriority; | |
import org.bukkit.event.Listener; | |
import com.mcbans.firestar.mcbans.events.PlayerBanEvent; |
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
/** | |
* JavaTest - Package: syam.Test | |
* Created: 2012/09/16 18:37:01 | |
*/ | |
package syam.Test; | |
public class myNewSingleton { | |
private static myNewSingleton instance = null; | |
private myNewSingleton() { |
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
@EventHandler | |
public void onPlayerInteract(final PlayerInteractEvent event){ | |
Player player = (Player) event.getPlayer(); | |
if (!player.equals(Bukkit.getPlayer("syamn"))) | |
return; | |
if (event.getAction() == Action.LEFT_CLICK_BLOCK){ | |
Block toBlock = event.getClickedBlock(); | |
Block fromBlock = toBlock.getRelative(BlockFace.DOWN, 2); |