Skip to content

Instantly share code, notes, and snippets.

View DinaBelova's full-sized avatar
🏠
Working from home

Dina Belova DinaBelova

🏠
Working from home
  • Mirantis
  • Campbell, USA
View GitHub Profile
@DinaBelova
DinaBelova / 0_reuse_code.js
Created November 18, 2015 22:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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,
@DinaBelova
DinaBelova / 123
Created December 4, 2012 12:58
123
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
#include <iostream>
#include <string>
#include <conio.h>
/*
Требуется написать шаблонный класс, позволяющий вести подсчет ссылок на объект.
В качестве помощи используйте следующие материалы:
http://ru.wikipedia.org/wiki/Умный_указатель - раздел про указатели с подсчетом ссылок.
['and',
['>=', '$free_ram_mb', 1024],
['>=', '$free_disk_mb', 200 * 1024]
]
<?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>
#!/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,
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <map>
using namespace std;
void trim(string& str) {
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>();
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.StringTokenizer;
/**
* @author Dina Belova
*/
public class Solution {