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
for(i=1;i<=12;i++) | |
{ | |
$('.col-md-'+i).each(function(){ | |
for(j=1;j<=12;j++) | |
{ | |
if($(this).hasClass('col-sm-'+j)) | |
{ | |
$(this).removeClass('col-sm-'+j); | |
$(this).addClass('col-sm-'+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
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<Spinner | |
android:id="@+id/subject_spinner" | |
android:layout_width="1dp" | |
android:layout_height="1dp" | |
android:layout_alignParentTop="true" | |
android:layout_centerHorizontal="true" |
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 | |
public function users_delete() | |
{ | |
$id = (int) $this->get('id'); | |
$group = (int) $this->delete('group'); | |
$group_2 = (int) $this->delete('group_2'); | |
echo "id : ".$id.'<BR/>'; | |
echo "group : ".$group.'<BR/>'; | |
echo "group 2 : ".$group_2.'<BR/>'; |
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 get_youtube_cover($url = '') | |
{ | |
$arr = parse_url($url); | |
parse_str($arr['query'],$queries); | |
return 'http://img.youtube.com/vi/'.$queries['v'].'/hqdefault.jpg'; | |
} |
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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.*; | |
public class DENEME extends JFrame | |
{ | |
public static final int WIDTH = 300; | |
public static final int HEIGHT = 300; | |
public static JTextField textfield_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
// SaveRequest with request and response | |
func SaveRequest(url string, reqBody string, respStatus int, resp string) { | |
r := fmt.Sprintf( | |
`{"url": "%s", "reqBody": "%s", "respStatus": "%d", "resp": "%s"\n`, | |
jsonEscape(url), | |
jsonEscape(reqBody), | |
respStatus, | |
jsonEscape(resp), | |
) |
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
type RequestLogs struct { | |
responses []string | |
sync.Mutex | |
} | |
var logs RequestLogs | |
// InitRequestLogs ... | |
func InitRequestLogs() { | |
go func() { |
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
type requestLogs struct { | |
logs []string | |
sync.Mutex | |
} | |
var reqLogs requestLogs | |
func LogRequest(url string, reqBody string, respStatus int, resp string) { | |
l := fmt.Sprintf( | |
`{"url": "%s", "reqBody": "%s", "respStatus": "%d", "resp": "%s"\n\r`, |
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
type requestLogs struct { | |
logs []string | |
sync.Mutex | |
} | |
var reqLogs requestLogs | |
// InitRequestLogs ... | |
func InitRequestLogs() { | |
go func() { |
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
// InitRequestLogs ... | |
func InitRequestLogs() { | |
go func() { | |
for { | |
time.Sleep(time.Second * 5) | |
writeLogs() | |
} | |
}() | |
} |
OlderNewer