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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
struct Person { | |
var about: String | |
var firstName: String | |
var lastName: String | |
var job: String | |
func printPerson() { | |
print("About \(firstName) \(lastName)") | |
print("\(about)") | |
print("May be working as \(job)") |
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 /L %%A IN (1,1,1000) DO ( | |
shutdown /r /m \\MICRO-%%A | |
ECHO shutdown /r /m \\MICRO-%%A | |
) |
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
public class StairCase { | |
public static void main(String[] args) { | |
stairCase(10); | |
// output | |
// # | |
// ## | |
// ### | |
// #### | |
// ##### |
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
<(?:h:outputLabel)(?:\s+(?!for\b)[\w\-.:]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[\w\-.:]+))?)*\s*/?> |
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
<rich:tab header="Escolher Metricas" id="tabMetrica" | |
rendered="#{SistemaController.passo eq 2}"> | |
<rich:dragIndicator id="ind2" acceptClass="accept" | |
rejectClass="reject" draggingClass="default"> | |
Arraste o item para a area disponivel | |
</rich:dragIndicator> | |
<h:form> |
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 uscs; | |
import java.io.*; | |
import java.net.*; | |
public class Atv02A { | |
@SuppressWarnings("deprecation") | |
public static void main(String args[]) { | |
String[] codigo = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10" }; | |
String[] descr = { "Produto A", "Produto B", "Produto C", "Produto D", "Produto E", "Produto F", "Produto G", |
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 uscs; | |
import java.io.*; | |
import java.net.*; | |
public class Atv01 { | |
@SuppressWarnings("deprecation") | |
public static void main(String args[]) { | |
try { |
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 com.emil.android.util; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.telephony.TelephonyManager; | |
/** | |
* Check device's network connectivity and speed | |
* @author emil http://stackoverflow.com/users/220710/emil |
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
** Ativa monitoramento remoto | |
** Testes utilizar sem autenticação | |
** Produção não utilizar sem autenticação | |
java -Xmx6m -Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jm\parxremote.port=9000 | |
-Dcom.sun.management.jmxremote.local.only=false | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false |
NewerOlder