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
$$$ = {}; | |
$$$.ui = {}; | |
$$$.ui.createImageView = function(options){ | |
var ui = Ti.UI.createImageView(options); | |
// 画像を永続化してキャッシュ | |
ui.imageWithCache = function(url){ | |
url = url.replace(/\?[0-9]+$/,''); |
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
bool num_check(char c) { | |
return c >= 48 && c <= 57; | |
} |
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<iostream> | |
using namespace std; | |
int gcd(int a,int b) { | |
if(a == b) return a; | |
if(a < b) return gcd(a,b-a); | |
if(a > b) return gcd(a-b,b); | |
} |
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 | |
$uri = "https://www.facebook.com/hoge/app_hgoehoge"; | |
print "<script type='text/javascript'>top.location.href='" . $uri . "';</script>"; | |
exit; | |
?> |
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/sh | |
PROXY="proxy url" | |
PORT=port_num | |
networksetup -setwebproxy Wi-Fi ${PROXY} ${PORT} | |
networksetup -setsecurewebproxy Wi-Fi ${PROXY} ${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
#!/bin/sh | |
networksetup -setwebproxystate Wi-Fi off | |
networksetup -setsecurewebproxystate Wi-Fi off |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define BUFLEN 80 | |
#define STKLMT 100 | |
char STACK[STKLMT]; | |
int StkCtr; |
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<sstream> | |
#include<iostream> | |
#include<vector> | |
#include<list> | |
#include<string> | |
using namespace std; | |
class TestSample { | |
public: | |
int wordlen(string word) { |
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
#baners { | |
width: 500px; | |
line-height: 40px; | |
padding: 10px; | |
/**************** | |
* 以下を追加する | |
****************/ | |
margin-left: auto; | |
margin-right: auto; |
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
class ValueHistogram { | |
public: | |
vector <string> build(vector <int> values) { | |
vector <string> result; | |
vector<int> c(10, 0); | |
vector<string> s(51, ".........."); | |
for(int i=0;i < values.size();i++) { | |
s[c[values[i]]][values[i]] = 'X'; | |
c[values[i]]++; |
OlderNewer