Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
def authenticate_with_email_and_password | |
passenger = Passenger.find_by_email(params[:email]) | |
if passenger | |
if passenger.valid_password?(params[:password]) | |
if passenger.confirmed? | |
passenger | |
else | |
render :json => {:result => "failure",:error => "not confirmed"}.to_json | |
return | |
end |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
import java.util.Scanner; | |
public class ipreader { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
System.out.println("enter your ip"); | |
String ip=s.next(); | |
String newip=""; | |
char ipChar; | |
for(int i=0;i<ip.length();i++) |
ip= gets | |
p ip.split(".") |
import java.util.StringTokenizer; | |
import java.util.NoSuchElementException; | |
public class IpCutter3 { | |
public static void main (String[]args) { | |
StringTokenizer Q = new StringTokenizer(args[0]); | |
String[]k=new String[4]; | |
try { | |
for (int i=0;i<4;i++) | |
k[i]=Q.nextToken("."); | |
} |
public class IpCutter2{ | |
public static void main(String[] args){ | |
String[] ip; | |
ip=args[0].split("\\."); | |
for(int i=0;i<ip.length;i++){ | |
System.out.println(ip[i]); | |
} | |
} |
public class IpCutter{ | |
public static void main(String[] args){ | |
int x; | |
int begin; | |
int end; | |
int count; | |
String ip; | |
x=0; |
<script type="text/javascript"> | |
c=document.getElementsByClassName("comment-inner"); | |
last_element = c[c.length - 1]; | |
last_element.style.borderBottomWidth="0"; | |
</script> |