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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
public class GraphsTplg { | |
public static void main(String[] args) throws Exception { | |
TopologyBuilder builder = new TopologyBuilder(); | |
final int vertexes = 5; | |
final int edges = -1; | |
final int components = 1; | |
Graphs.Generator generator = Graphs.generator(vertexes, edges, |
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
heat@ubuntu:/opt/stack/keystone$ git diff etc/keystone.conf.sample /etc/keystone/keystone.conf | |
diff --git a/etc/keystone.conf.sample b/etc/keystone/keystone.conf | |
index 1d48676..1098492 100644 | |
--- a/etc/keystone.conf.sample | |
+++ b/etc/keystone/keystone.conf | |
@@ -1,4 +1,5 @@ | |
[DEFAULT] | |
+admin_token = password | |
# A "shared secret" between keystone and other openstack services | |
# admin_token = ADMIN |
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
#include <iostream> | |
#include <string> | |
#include <conio.h> | |
/* | |
Требуется написать шаблонный класс, позволяющий вести подсчет ссылок на объект. | |
В качестве помощи используйте следующие материалы: | |
http://ru.wikipedia.org/wiki/Умный_указатель - раздел про указатели с подсчетом ссылок. |
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
['and', | |
['>=', '$free_ram_mb', 1024], | |
['>=', '$free_disk_mb', 200 * 1024] | |
] |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/> | |
<b:if cond='data:blog.isMobile'> | |
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/> | |
<b:else/> | |
<meta content='width=1100' name='viewport'/> | |
</b:if> |
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
#!/usr/bin/python | |
import wx | |
DIMENSION_CONST = 304 | |
CELLS_NUMBER = 3 | |
class NoughtsAndCrosses(wx.Frame): | |
def __init__(self, parent, id, title): | |
wx.Frame.__init__(self, parent, id, title, size=(DIMENSION_CONST, |
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
#include <iostream> | |
#include <fstream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string> | |
#include <map> | |
using namespace std; | |
void trim(string& str) { |
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
import java.io.*; | |
import java.util.*; | |
/** | |
* @author Dina Belova | |
*/ | |
public class Solution2064 { | |
private static Table table = new Table(); | |
private static List<SortRule> rules = new ArrayList<SortRule>(); |
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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
import java.util.StringTokenizer; | |
/** | |
* @author Dina Belova | |
*/ | |
public class Solution { |