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
//courtesy: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/ | |
angular.module('session', ['$strap.directives'], setPostHeader) | |
//angular def (router, run ect | |
/** | |
* Set default header AJAX Angular agar bisa dibaca oleh PHP lewat POST | |
* @param $httpProvider | |
*/ | |
function setPostHeader($httpProvider) { |
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
<?php | |
class UserIdentity extends CUserIdentity { | |
private $_username; // username | |
private $_role; // nama user | |
private $_id; // id user | |
private $_statusPenyuluh; // Status penyuluh | |
public function authenticate() { |
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
Private Sub Form_Load() | |
'init form | |
'frekuensi awal | |
frekuensi = 0 | |
'baris bikin graph, keknya ga bermasalah | |
FileSuaraUji(0) = "D:\Suara Uji\100.wav" | |
FileSuaraUji(1) = "D:\Suara Uji\200.wav" | |
FileSuaraUji(2) = "D:\Suara Uji\500.wav" |
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
""" | |
host.txt generated from command: host -l domain (unix like) | |
""" | |
try: | |
f = open("host.txt", "r") | |
try: | |
lines = f.readlines() | |
before = "" | |
count = 0 | |
for line in lines: |
NewerOlder